<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>1.0</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.7</version>
  
  <properties>
	  <serverUrl>dev.lutece.paris.fr</serverUrl>
  </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>1.0-alpha-1</version>
		      <configuration>
		        <convention>lutece-parent-pom/jalopy_mdp.xml</convention>
		      </configuration>
		    </plugin>
			
			<plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-surefire-plugin</artifactId>
		        <configuration>
		         	<excludes>
			            <exclude>**/MainTest.java</exclude>
			            <exclude>**/TestRunner.java</exclude>
			            <exclude>**/LuteceTestCase.java</exclude>
		          	</excludes>
					<systemProperties>
						<property>
							<name>net.sourceforge.cobertura.datafile</name>
							<value>target/cobertura/cobertura.ser</value>
						</property>
					</systemProperties>
		        </configuration>
			</plugin>
			
			<plugin>
		        <groupId>org.codehaus.mojo</groupId>
		        <artifactId>cobertura-maven-plugin</artifactId>
				<configuration>
					<formats>
						<format>html</format>
						<format>xml</format>
					</formats>
		        </configuration>
		    </plugin>

		    <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-surefire-report-plugin</artifactId>
		        <configuration>
	           		<showSuccess>true</showSuccess>
	        	</configuration>
		    </plugin>
			
		    <plugin>
		        <artifactId>maven-antrun-plugin</artifactId> 	            
		        <configuration>
		          <tasks>
					<ant antfile="${basedir}/target/lutece/WEB-INF/sql/build.xml" dir="${basedir}/target/lutece/WEB-INF/sql/">
	                  	<target name="all" />
	                </ant>
		          </tasks>
		        </configuration>
				<dependencies>
		        	<dependency>
		              	<groupId>ant</groupId>
		                <artifactId>ant-optional</artifactId>
		                <version>1.5.3-1</version>
		            </dependency>
				</dependencies>
		    </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.3</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>
					<rulesets>
						<ruleset>lutece-parent-pom/lutece_PMD.xml</ruleset>
					</rulesets>
				</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>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>2.0-beta-1</version>
                  
                <configuration>
					<tag>TODO</tag>
					<tag>FIXME</tag>
					<tag>@todo</tag>
					<tag>@deprecated</tag>
					<tag>DOCUMENT_ME</tag>
					<tag>NOT_YET_DOCUMENTED</tag>					
                </configuration>
            </plugin>			
			
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>javancss-maven-plugin</artifactId>
				<version>2.0-beta-2</version>
			</plugin>
	  
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
				<version>1.1.1</version>
				<configuration>
					<xmlOutput>true</xmlOutput>
					<threshold>Normal</threshold>
					<effort>Max</effort>
				</configuration>				
			</plugin>		
			
		</plugins>
  </reporting>
    
	<profiles>
    <profile>
		<id>dashboard-maven-plugin</id>
		<reporting>
			<plugins>
				<plugin>
		   			<groupId>org.codehaus.mojo</groupId>
		   			<artifactId>dashboard-maven-plugin</artifactId>
		   			<version>1.0-SNAPSHOT</version>
				</plugin>
			</plugins>
		</reporting>
	</profile>
  </profiles>
  
  <modules>
	<module>build-tools</module>
  </modules>
  
</project>