<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>maven-lutece-plugin</artifactId>
	<packaging>maven-plugin</packaging>
	<version>0.8</version>
	<name>Lutece Plugin for Maven 2</name>
	<description>
		A Maven plugin which handles the common tasks to develop and package
		the Lutece core and Lutece plugins, and to assemble a web site from a
		set of Lutece artifacts.
	</description>
	<inceptionYear>2006</inceptionYear>
	<organization>
		<name>Mairie de Paris</name>
		<url>http://lutece.paris.fr</url>
	</organization>
	<url>http://dev.lutece.paris.fr/plugins/</url>

	<repositories>
		<repository>
			<id>lutece</id>
			<name>luteceRepository</name>
			<url>http://dev.lutece.paris.fr/maven_repository</url>
			<layout>default</layout>
		</repository>
	</repositories>
	
	<dependencies>
		<dependency>
			<groupId>org.apache.maven</groupId>
			<artifactId>maven-plugin-api</artifactId>
			<version>2.0.4</version>
		</dependency>
		<dependency>
			<groupId>org.apache.maven</groupId>
			<artifactId>maven-project</artifactId>
			<version>2.0.4</version>
		</dependency>
		<dependency>
			<groupId>org.apache.maven</groupId>
			<artifactId>maven-archiver</artifactId>
			<version>2.2</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<!--
				This is a workaround for a bug in maven-plugin-plugin : if we
				declare this plugin in the <reporting> section, it overwrites
				the index.html file.
				To prevent this, the generation of the plugin documentation is
				bound to the pre-site phase.
				This problem should be solved in maven 2.0.5.
			-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-plugin-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-xdocs</id>
						<phase>pre-site</phase>
						<goals>
							<goal>xdoc</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
		        <artifactId>maven-compiler-plugin</artifactId>
        		<configuration>
          			<source>1.5</source>
          			<target>1.5</target>
        		</configuration>
      		</plugin>
		</plugins>
	</build>
	<scm>
	    <connection>scm:svn:http://dev.lutece.paris.fr/svn/lutece/tools/maven-lutece-plugin/trunk</connection>
	    <developerConnection>scm:svn:https://dev.lutece.paris.fr/svn/lutece/tools/maven-lutece-plugin/trunk</developerConnection>
	    <url>http://dev.lutece.paris.fr/viewvc/tools/maven-lutece-plugin/</url>
	</scm>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
		<configuration>
			<minmemory>128m</minmemory>
			<maxmemory>512m</maxmemory>
		</configuration>
      </plugin>
	  <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-jxr-plugin</artifactId>
		<configuration>
			<outputEncoding>UTF-8</outputEncoding>
		</configuration>
	  </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changes-plugin</artifactId>
        <configuration>
          	<webPassword>${user.webPassword}</webPassword>
           	<webUser>${user.webUser}</webUser>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>jira-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

	<distributionManagement>
		<site>
    	  <id>ssh-repository</id>
	      <url>scp://${serverUrl}/opt/lutece/site/plugins/${project.artifactId}</url>
	    </site>
	</distributionManagement>
	
	<issueManagement>
		<system>jira</system>
	  	<url>${jiraBaseUrl}/browse/TOOLS</url>
	</issueManagement>
	
</project>