<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>
  <groupId>fr.paris.lutece.tools</groupId>
  <artifactId>lutece-global-pom</artifactId>
  <name>Lutece global pom</name>
  <url>http://dev.lutece.paris.fr/</url> 
  <packaging>pom</packaging>
  <version>2.3</version>
  <licenses>
	  <license>
	    <name>Lutece license</name>
	    <url>http://dev.lutece.paris.fr/LICENSE.TXT</url>
	    <distribution>repo</distribution>
	  </license>
  </licenses>

  <properties>
	  <serverUrl>dev.lutece.paris.fr</serverUrl>
	  <jiraBaseUrl>http://${serverUrl}/jira</jiraBaseUrl>
	  <organization.logo>http://fr.lutece.paris.fr/fr/images//local/skin/banner.gif</organization.logo>
  </properties>
  
  <organization>
    <name>Mairie de Paris</name>
    <url>http://lutece.paris.fr</url>
  </organization>
  
  <issueManagement>
    <system>jira</system>
    <url>${jiraBaseUrl}/browse/${jiraProjectName}</url>
  </issueManagement>
  
  <ciManagement>
    <system>continuum</system>
    <url>http://${serverUrl}/continuum/</url>
    <notifiers>
    	<notifier>
    		<type>mail</type>
    		<configuration>
    			<address>lutece@paris.fr</address>
    		</configuration>
    	</notifier>
    </notifiers>
  </ciManagement>

  <build>
  	<plugins>
        <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <inputEncoding>UTF-8</inputEncoding>
          <outputEncoding>UTF-8</outputEncoding>
          <locales>en,fr</locales>
			<reportPlugins>
		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-javadoc-plugin</artifactId>
		        <version>2.9</version>
				<configuration>
					<minmemory>128m</minmemory>
					<maxmemory>512m</maxmemory>
				</configuration>
		      </plugin>
			  <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jxr-plugin</artifactId>
				<version>2.3</version>
				<configuration>
					<outputEncoding>UTF-8</outputEncoding>
				</configuration>
			  </plugin>
		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-changes-plugin</artifactId>
		        <version>2.8</version>
		        <configuration>
		        	<useJql>true</useJql>
		          	<webPassword>${user.webPassword}</webPassword>
		           	<webUser>${user.webUser}</webUser>
					<!-- <component>${jiraComponentId}</component> -->
		        </configuration>
		        <reportSets>
		          <reportSet>
		            <reports>
		              <report>jira-report</report>
		            </reports>
		          </reportSet>
		        </reportSets>
		      </plugin>
		      <plugin>
		           <groupId>org.apache.maven.plugins</groupId>
		           <artifactId>maven-project-info-reports-plugin</artifactId>
		           <version>2.5.1</version>
		           <reportSets>
		              <reportSet>
		                 <reports>
		                    <report>index</report>
		                    <report>summary</report>
		                    <!-- <report>dependencies</report> --> <!-- Removed in order to remove the jboss black listed repository when executing "mvn site" -->
		                    <report>cim</report>
		                    <report>issue-tracking</report>
		                    <report>license</report>
		                    <report>scm</report>
		                 </reports>
		              </reportSet>
		           </reportSets>
		       </plugin>
		       <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-checkstyle-plugin</artifactId>
					<version>2.9.1</version>
	                <configuration>
	                    <minmemory>128m</minmemory>
	                    <maxmemory>728m</maxmemory>
	                    <configLocation>lutece-parent-pom/lutece_checks.xml</configLocation>
	                    <headerLocation>lutece-parent-pom/checkstyle-header.txt</headerLocation>
	                </configuration>
	                <reportSets>
				        <reportSet>
				            <reports>
				                <report>checkstyle</report>
				            </reports>
				        </reportSet>
				    </reportSets>
	            </plugin>
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-pmd-plugin</artifactId>
	                <version>2.7.1</version>
	                <configuration>
	                    <minmemory>128m</minmemory>
	                    <maxmemory>512m</maxmemory>
	                    <rulesets>
	                        <ruleset>lutece-parent-pom/lutece_PMD.xml</ruleset>
	                    </rulesets>
	                </configuration>
	            </plugin>
	            <plugin>
	                <groupId>org.codehaus.mojo</groupId>
	                <artifactId>jdepend-maven-plugin</artifactId>
					<version>2.0-beta-2</version>
	            </plugin>
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-changelog-plugin</artifactId>
					<version>2.2</version>
	                <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.4</version>
	                <configuration>
						<tags>
							<tag>TODO</tag>
							<tag>FIXME</tag>
							<tag>@todo</tag>
							<tag>@deprecated</tag>
							<tag>DOCUMENT_ME</tag>
							<tag>NOT_YET_DOCUMENTED</tag>
						</tags>
	                </configuration>
	            </plugin>
	            <plugin>
	                <groupId>org.codehaus.mojo</groupId>
	                <artifactId>javancss-maven-plugin</artifactId>
	                <version>2.0</version>
	            </plugin>
	            <plugin>
	                <groupId>org.codehaus.mojo</groupId>
	                <artifactId>findbugs-maven-plugin</artifactId>
	                <version>2.5.2</version>
	            </plugin>
	            <plugin>
	                <groupId>org.codehaus.mojo</groupId>
	                <artifactId>cobertura-maven-plugin</artifactId>
					<version>2.5.2</version>
	                <configuration>
	                    <instrumentation>
	                        <ignores>
	                            <ignore>fr.paris.lutece.portal.web.constants.*</ignore>
	                        </ignores>
	                    </instrumentation>
	                </configuration>
	            </plugin>
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-surefire-report-plugin</artifactId>
					<version>2.12.4</version>
	            </plugin>
				<plugin>
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>dashboard-maven-plugin</artifactId>
					<version>1.0.0-beta-1</version>
			    </plugin>    
			    <plugin>
					<groupId>org.codehaus.sonar-plugins</groupId>
					<artifactId>maven-report</artifactId>
					<version>0.1</version>
				</plugin>
			</reportPlugins>
        </configuration>
        <executions>
		    <execution>
		      <id>attach-descriptor</id>
		      <goals>
		        <goal>attach-descriptor</goal>
		      </goals>
		    </execution>
		</executions>
      </plugin>
  	</plugins>
  	<extensions>
        <extension>
            <groupId>fr.paris.lutece.tools</groupId>
            <artifactId>build-tools</artifactId>
            <version>0.13</version>
        </extension>
    </extensions>
  </build>

  <repositories>
    <repository>
      <id>lutece</id>
      <name>luteceRepository</name>
      <url>http://${serverUrl}/maven_repository</url>
      <snapshots>
	      <enabled>false</enabled>
	  </snapshots>
    </repository>
    <repository>
      <id>luteceSnapshot</id>
      <name>luteceSnapshot</name>
      <url>http://${serverUrl}/snapshot_repository</url>
      <snapshots>
      	<enabled>true</enabled>
	  </snapshots>
    </repository>
  </repositories>
  
  <pluginRepositories>
    <pluginRepository>
      <id>lutece</id>
      <name>luteceRepository</name>
      <url>http://${serverUrl}/maven_repository</url>
    </pluginRepository>
  </pluginRepositories>
  
  	<distributionManagement>
		<repository>
			<id>lutece_releases_repository</id>
			<url>http://dev.lutece.paris.fr/nexus/content/repositories/lutece_releases_repository</url>
		</repository>
		
		<snapshotRepository>
			<uniqueVersion>true</uniqueVersion>
			<id>lutece_snapshots_repository</id>
			<url>http://dev.lutece.paris.fr/nexus/content/repositories/lutece_snapshots_repository</url>
		</snapshotRepository>
    </distributionManagement>

	<!-- Maven 3 new syntax is to config the reporting in the build tag -->
	<!-- <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9</version>
		<configuration>
			<minmemory>128m</minmemory>
			<maxmemory>512m</maxmemory>
		</configuration>
      </plugin>
	  <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-jxr-plugin</artifactId>
		<version>2.3</version>
		<configuration>
			<outputEncoding>UTF-8</outputEncoding>
		</configuration>
	  </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changes-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          	<webPassword>${user.webPassword}</webPassword>
           	<webUser>${user.webUser}</webUser>
			<component>${jiraComponentId}</component>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>jira-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-project-info-reports-plugin</artifactId>
           <version>2.5.1</version>
           <reportSets>
              <reportSet>
                 <reports>
                    <report>index</report>
                    <report>summary</report>
                    <report>dependencies</report>
                    <report>cim</report>
                    <report>issue-tracking</report>
                    <report>license</report>
                    <report>scm</report>
                 </reports>
              </reportSet>
           </reportSets>
       </plugin>
    </plugins>
  </reporting> -->
  
    <scm>
		<connection>scm:svn:http://dev.lutece.paris.fr/svn/lutece/tools/lutece-global-pom/tags/global-pom-2.3</connection>
		<developerConnection>scm:svn:https://dev.lutece.paris.fr/svn/lutece/tools/lutece-global-pom/tags/global-pom-2.3</developerConnection>
		<url>http://dev.lutece.paris.fr/viewvc/tools/lutece-global-pom/tags/global-pom-2.3</url>
	</scm>
  
</project>