<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/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
     
      <parent>
	    <groupId>org.sonatype.oss</groupId>
	    <artifactId>oss-parent</artifactId>
	    <version>7</version>
	  </parent>
  
    
	  <groupId>com.adaptivui</groupId>
	  <artifactId>tapestry-genetify</artifactId>
	  <version>1.0.0</version>
	  <name>Tapestry Genetify module</name>
	  <packaging>jar</packaging>
	  <description>A tapestry integration for Genetify (A/B testing and webpages optimization)</description>
      <url>https://github.com/adaptivui/tapestry-genetify</url>
	   <licenses>
	       <license>
	           <name>The Apache Software License, Version 2.0</name>
	           <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
	           <distribution>repo</distribution>
	       </license>
	   </licenses>
	   <scm>
		   <connection>scm:git:https://github.com/adaptivui/tapestry-genetify.git</connection>
		   <developerConnection>scm:git:https://github.com/adaptivui/tapestry-genetify.git</developerConnection>
		   <url>https://github.com/adaptivui/tapestry-genetify.git</url>
	   </scm>
	   <developers>
			<developer>
			    <id>adaptivui</id>
		       <name>Nourredine KHADRI</name>
		       <email>nourredine.k@gmail.com</email>
		       <roles>
		       		<role>Developer</role>
		       </roles>
		       <timezone>+1</timezone>
		   </developer>
	  </developers>
	     
      <dependencies>
        <!-- Too set up an application with a database, change the artifactId below to
             tapestry-hibernate, and add a dependency on your JDBC driver. You'll also
             need to add Hibernate configuration files, such as hibernate.cfg.xml. -->
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-core</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>

        <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>${testng-release-version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>${easymock-release-version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-test</artifactId>
            <version>${tapestry-release-version}</version>
            <scope>test</scope>
        </dependency>

        <!-- Provided by the servlet container, but sometimes referenced in the application
       code. -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>${servlet-api-release-version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- Provide dependency to the Tapestry javadoc taglet which replaces the Maven component report -->
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-javadoc</artifactId>
            <version>${tapestry-release-version}</version>
            <scope>provided</scope>
        </dependency>

        </dependencies>
    <build>
        <finalName>tapestry-genetify</finalName>
        <plugins>
	        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <optimize>true</optimize>
                </configuration>
            </plugin>

            <plugin>
				  <groupId>org.apache.maven.plugins</groupId>
				  <artifactId>maven-source-plugin</artifactId>
				  <executions>
				    <execution>
				      <id>attach-sources</id>
				      <goals>
				        <goal>jar</goal>
				      </goals>
				    </execution>
				  </executions>
				</plugin>
				<plugin>
				  <groupId>org.apache.maven.plugins</groupId>
				  <artifactId>maven-javadoc-plugin</artifactId>
				  <executions>
				    <execution>
				      <id>attach-javadocs</id>
				      <goals>
				        <goal>jar</goal>
				      </goals>
				    </execution>
				  </executions>
				</plugin>
				
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
      					<archive>
      						<manifestEntries>
      							<Tapestry-Module-Classes>
      								com.adaptivui.tapestry5.genetify.services.GenetifyModule
      							</Tapestry-Module-Classes>
      						</manifestEntries>
      					</archive>
      				</configuration>
                
            </plugin>

            <!-- Run the application using "mvn jetty:run" -->
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.16</version>
                <configuration>
                  <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
                    <append>true</append>
                  </requestLog>
                  <useTestClasspath>true</useTestClasspath>
                  <webAppSourceDirectory>src/test/webapp</webAppSourceDirectory>
                </configuration>
            </plugin>
            
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>2.4.3</version>
              <configuration>
                <includes>
      				<include>**/*Test.java</include>
      			</includes>
      			<suiteXmlFiles>
                  <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
                </suiteXmlFiles>
                <argLine>-Xmx500m</argLine>
                <redirectTestOutputToFile>false</redirectTestOutputToFile>
              </configuration>
            </plugin>
            
            <plugin>
              <groupId>com.mycila.maven-license-plugin</groupId>
              <artifactId>maven-license-plugin</artifactId>
              <version>1.5.1</version>
              <configuration>
                <header>LICENSE.txt</header>
                <excludes>
                  <exclude>**/*.sql</exclude>
                  <exclude>**/*.txt</exclude>
                  <exclude>**/PLACEHOLDER</exclude>
                  <exclude>**/*.properties</exclude>
                  <exclude>**/web.xml</exclude>
                  <exclude>**/*.apt</exclude>
                  <exclude>**/*.tml</exclude>
                  <exclude>**/.*</exclude>
                  <exclude>**/*.ent</exclude>
                  <exclude>**/*.xsl</exclude>
                  <exclude>**/*.xml</exclude>
                  <exclude>**/*.html</exclude>
                  <exclude>**/*.dtd</exclude>
                  <exclude>src/test/conf/**</exclude>
                </excludes>
                <useDefaultExcludes>true</useDefaultExcludes>
                <mapping>
                  <java>DOUBLESLASH_STYLE</java>
                </mapping>
                <useDefaultMapping>true</useDefaultMapping>
                <encoding>UTF-8</encoding>
              </configuration>
          </plugin>

        </plugins>
    </build>

    <reporting />

    <properties>
        <tapestry-release-version>5.3.7</tapestry-release-version>
        <servlet-api-release-version>2.5</servlet-api-release-version>
        <testng-release-version>5.14.9</testng-release-version>
        <easymock-release-version>3.0</easymock-release-version>
    </properties>
    
</project>
