<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"
>
  <parent>
	  <artifactId>lutece-global-pom</artifactId>
	  <groupId>fr.paris.lutece.tools</groupId>
	  <version>0.8</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>fr.paris.lutece.tools</groupId>
  <artifactId>lutece-parent-pom</artifactId>
  <name>Lutece default project</name>
  <url>http://dev.lutece.paris.fr/</url> 
  <packaging>pom</packaging>
  <version>1.1</version>
  
  <properties>
	  <serverUrl>dev.lutece.paris.fr</serverUrl>
	  <jiraBaseUrl>http://${serverUrl}/jira</jiraBaseUrl>
  </properties>
  
  <organization>
    <name>Mairie de Paris</name>
    <url>http://lutece.paris.fr</url>
  </organization>
	
	<dependencies>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.4</version>
			<scope>provided</scope>
	    </dependency>
	    <dependency>
	      <groupId>javax.servlet</groupId>
	      <artifactId>jsp-api</artifactId>
	      <version>2.0</version>
				<scope>provided</scope>
	    </dependency>	
	</dependencies>
	
	<build>
		<sourceDirectory>src/java</sourceDirectory>
		<resources>
			<resource>
				<directory>src/java</directory>
				<excludes>
					<exclude>**/*.java</exclude>
					<exclude>**/.svn/**</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>fr.paris.lutece.tools</groupId>
				<artifactId>maven-lutece-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<localConfDirectory>${localConfDirectory}</localConfDirectory>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
				  <source>1.5</source>
				  <target>1.5</target>
				</configuration>
			</plugin>
		    <plugin>
		      <groupId>org.codehaus.mojo</groupId>
		      <artifactId>jalopy-maven-plugin</artifactId>
		      <version>0.9-lutece</version>
		      <configuration>
		        <convention>lutece-parent-pom/jalopy_mdp.xml</convention>
		      </configuration>
		    </plugin>
		
			<!-- This declaration allows redifinition of webapp path. We don't use the war plugin directly, 
			but this definition has been found useful in some cases (eg mevenide import)  -->
		    <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-war-plugin</artifactId>
		        <version>2.0</version>
		        <configuration>
		           <warSourceDirectory>webapp</warSourceDirectory>   
		        </configuration>
		     </plugin>
		</plugins>
		<extensions>
			<extension>
				<groupId>fr.paris.lutece.tools</groupId>
				<artifactId>build-tools</artifactId>
				<version>0.2</version>
			</extension>
		</extensions>
	</build>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<configuration>
					<minmemory>128m</minmemory>
					<maxmemory>728m</maxmemory>
					<configLocation>lutece-parent-pom/lutece_checks.xml</configLocation>
					<headerLocation>lutece-parent-pom/checkstyle-header.txt</headerLocation>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-pmd-plugin</artifactId>
				<configuration>
					<minmemory>128m</minmemory>
					<maxmemory>512m</maxmemory>
					<targetJdk>1.5</targetJdk>
					<configLocation>lutece-parent-pom/lutece_PMD.xml</configLocation>
				</configuration>
			</plugin>
			<plugin>
				 <groupId>org.codehaus.mojo</groupId>
				  <artifactId>jdepend-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-changelog-plugin</artifactId>
				<reportSets>
				  <reportSet>
					<id>dual-report</id>
					<configuration>
					  <type>range</type>
					  <range>30</range>
					</configuration>
					<reports>
					  <report>changelog</report>
					  <report>file-activity</report>			 
					</reports>
				  </reportSet>
				</reportSets>
			</plugin>	    
		</plugins>
  </reporting>
  
  <modules>
	<module>build-tools</module>
  </modules>
  
</project>