<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>main-itcb</artifactId>
    <groupId>net.sf.itcb.common</groupId>
    <version>1.5.0</version>
  </parent>
  <groupId>net.sf.itcb.addons.cache</groupId>
  <artifactId>itcb-cache</artifactId>
  <version>0.3.0</version>
  
  <properties>
  	<ehcache-spring-annotations-version>1.2.0</ehcache-spring-annotations-version>
  	<net.sf.itcb.common-version>0.7.0</net.sf.itcb.common-version>
  </properties>
  
  <dependencies>				
		
		<dependency>
			<groupId>net.sf.itcb.common</groupId>
			<artifactId>itcb-common-business</artifactId>
			<version>${net.sf.itcb.common-version}</version>
		</dependency>	
		
		<dependency>
		  <groupId>com.googlecode.ehcache-spring-annotations</groupId>
		  <artifactId>ehcache-spring-annotations</artifactId>
		  <version>${ehcache-spring-annotations-version}</version>
		  
		  <exclusions>
		  	<exclusion>
		  		<groupId>org.springframework</groupId>
		  		<artifactId>spring-aop</artifactId>
		  	</exclusion>
		  	
		  	 <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
            </exclusion>
            <exclusion>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-beans</artifactId>
		  	</exclusion>
		  	<exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
		  	</exclusion>
		  </exclusions>
		</dependency>
		
		<dependency>
  			<groupId>org.springframework</groupId>
	    	<artifactId>spring-oxm</artifactId>
	    	<version>${org.springframework-version}</version>
  		</dependency>
  		
  		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>${servlet-version}</version>
			<scope>provided</scope>
		</dependency>
  </dependencies>
  
  
    <build>
    	<plugins>
    		<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
       
        <executions>
          <execution>
            <id>unpack-dependencies</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>unpack-dependencies</goal>
            </goals>
            <configuration>
              <includes>WEB-INF/schemasehcache/*.xsd,WEB-INF/xjb/*.xjb</includes>
              <outputDirectory>${project.build.directory}/xsdImported</outputDirectory>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
              <silent>true</silent>
            </configuration>
          </execution>
        </executions>
    </plugin>

      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <id>copy-resources</id>
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/xsdImported/WEB-INF/schemasehcache</outputDirectory>
              <resources>          
                <resource>
                  <directory>src/main/resources/WEB-INF/schemasehcache</directory>
                </resource>
              </resources>              
            </configuration>            
          </execution>
        </executions>
      </plugin>


          <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>jaxb2-maven-plugin</artifactId>
              
              <version>1.3</version>
              <executions>
                  <execution>
                      <goals>
                          <goal>xjc</goal>
                      </goals>
                  </execution>
             </executions>
             
             <configuration>
                  <schemaDirectory>${project.build.directory}/xsdImported/WEB-INF/schemasehcache</schemaDirectory>
            		<bindingDirectory>${project.build.directory}/xsdImported/WEB-INF/xjb</bindingDirectory>
            		<failOnNoSchemas>false</failOnNoSchemas>
             </configuration>
         </plugin>
       </plugins>
    
   </build>

  <scm>
    <connection>scm:svn:http://itcb.svn.sourceforge.net/svnroot/itcb/addons/itcb-cache/tags/itcb-cache-0.3.0</connection>
    <developerConnection>scm:svn:https://itcb.svn.sourceforge.net/svnroot/itcb/addons/itcb-cache/tags/itcb-cache-0.3.0</developerConnection>
    <url>http://itcb.svn.sourceforge.net/viewvc/itcb/addons/itcb-cache/tags/itcb-cache-0.3.0</url>
  </scm>
</project>