<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <!-- ************************************************************* -->
    <!-- *** POM Relationships *************************************** -->
    <!-- ************************************************************* -->

    <groupId>org.nuiton</groupId>
    <artifactId>mavenpom</artifactId>
    <version>2.0.7</version>

    <modules>
        <module>mavenpom4redmine</module>
        <module>mavenpom4labs</module>
    </modules>

    <!-- ************************************************************* -->
    <!-- *** Project Information ************************************* -->
    <!-- ************************************************************* -->

    <name>Mavenpom</name>

    <description>Ancestor of all projects of Code Lutin</description>

    <url>http://maven-site.nuiton.org/mavenpom</url>

    <inceptionYear>2009</inceptionYear>

    <licenses>
        <license>
            <name>Lesser General Public License (LGPL)</name>
            <url>${maven.license.file}</url>
            <distribution>local</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Benjamin Poussin</name>
            <id>bpoussin</id>
            <email>poussin@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
                <role>Debian packager</role>
            </roles>
        </developer>

        <developer>
            <name>Arnaud Thimel</name>
            <id>athimel</id>
            <email>thimel@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Julien Ruchaud</name>
            <id>jruchaud</id>
            <email>ruchaud@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Eric Chatellier</name>
            <id>echatellier</id>
            <email>chatellier@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Tony Chemit</name>
            <id>tchemit</id>
            <email>chemit@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Sylvain Letellier</name>
            <id>sletellier</id>
            <email>letellier@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Yannick Martel</name>
            <id>ymartel</id>
            <email>martel@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Stéphane Chorlet</name>
            <id>schorlet</id>
            <email>chorlet@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>
        <developer>
            <name>Jean Couteau</name>
            <id>jcouteau</id>
            <email>couteau@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Florian Desbois</name>
            <id>fdesbois</id>
            <email>desbois@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

        <developer>
            <name>Kevin Morin</name>
            <id>kmorin</id>
            <email>morin@codelutin.com</email>
            <organization>CodeLutin</organization>
            <timezone>+2</timezone>
            <roles>
                <role>Développeur</role>
            </roles>
        </developer>

    </developers>

    <organization>
        <name>CodeLutin</name>
        <url>http://www.codelutin.com/</url>
    </organization>

     <!-- ************************************************************* -->
    <!-- *** Build Environment  ************************************** -->
    <!-- ************************************************************* -->

    <!-- Build Environment : Environment Information -->

    <issueManagement>
        <system>redmine</system>
        <url>http://nuiton.org/projects/${projectId}/issues</url>
    </issueManagement>

    <ciManagement>
        <system>hudson</system>
        <url>http://hudson.nuiton.org/hudson/job/${projectId}</url>
    </ciManagement>

    <!--Any mailing lists for the project-->
    <mailingLists>
        <mailingList>
            <name>${listId}-commits</name>
            <subscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-commits</subscribe>
            <unsubscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-commits</unsubscribe>
            <post>${listId}-commits@list.${platform}</post>
            <archive>http://list.${platform}/pipermail/${listId}-commits/</archive>
        </mailingList>

        <mailingList>
            <name>${listId}-devel</name>
            <subscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-devel</subscribe>
            <unsubscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-devel</unsubscribe>
            <post>${listId}-devel@list.${platform}</post>
            <archive>http://list.${platform}/pipermail/${listId}-devel/</archive>
        </mailingList>

        <mailingList>
            <name>${listId}-users</name>
            <subscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-users</subscribe>
            <unsubscribe>http://list.${platform}/cgi-bin/mailman/listinfo/${listId}-users</unsubscribe>
            <post>${listId}-users@list.${platform}</post>
            <archive>http://list.${platform}/pipermail/${listId}-users/</archive>
        </mailingList>
    </mailingLists>

    <!-- Source control management. -->
    <scm>
        <connection>scm:svn:http://svn.nuiton.org/svn/mavenpom/tags/mavenpom-2.0.7</connection>
        <developerConnection>scm:svn:http://svn.nuiton.org/svn/mavenpom/tags/mavenpom-2.0.7</developerConnection>
        <url>http://www.nuiton.org/repositories/browse/mavenpom/tags/mavenpom-2.0.7</url>
    </scm>

    <!-- ************************************************************* -->
    <!-- *** Build Settings ****************************************** -->
    <!-- ************************************************************* -->

    <properties>

        <!-- the redmine plateform used (nuiton.org or chorem.org) -->
        <platform>nuiton.org</platform>

        <!-- a proprerty to define the id of the project, in a multi-module
             project, you must use a hard-cored value, otherwise for modules
             the artifactId will be expanded , otherwise, no need to override it
        -->
        <projectId>${project.artifactId}</projectId>

        <!-- a property to define list id -->
        <listId>${projectId}</listId>

        <!-- default license to use  -->
        <license.licenseName>lgpl_v3</license.licenseName>

        <!-- java level is 1.6 -->
        <maven.compile.source>1.6</maven.compile.source>
        <maven.compile.target>1.6</maven.compile.target>

        <!-- default encoding -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <!-- by default, use maven 2 source base dir -->
        <maven.src.dir>${basedir}/src</maven.src.dir>

        <!-- where to generate sources -->
        <maven.gen.dir>${project.build.directory}/generated-sources</maven.gen.dir>

        <!-- where to generate test sources -->
        <maven.test.gen.dir>${project.build.directory}/generated-test-sources</maven.test.gen.dir>

        <!-- locales for the site generation, by default only french -->
        <!--<maven.site.locales>fr</maven.site.locales>-->
        <siteLocales>fr</siteLocales>

        <!-- default documentation format (if not rst, change it)-->
        <siteSourcesType>rst</siteSourcesType>

        <!-- scmwebeditor url -->
        <scmwebeditorUrl>http://scmwebeditor.nuiton.org/nuiton-scmwebeditor/scmwebeditor</scmwebeditorUrl>

        <!-- enable or disable scmwebeditor in generated site -->
        <scmwebeditorEnabled>true</scmwebeditorEnabled>

        <!-- le fichier de license du projet -->
        <maven.license.file>${project.basedir}/LICENSE.txt</maven.license.file>

        <!-- to allow bad tests -->
        <maven.test.testFailureIgnore>false</maven.test.testFailureIgnore>

        <!-- to skip tests (can use also profile notests) -->
        <maven.test.skip>false</maven.test.skip>

        <!-- to control fork mode of tests -->
        <maven.test.forkMode>once</maven.test.forkMode>

        <!-- to activate generation of reports and javadoc when doing a site -->
        <maven.reports.generate>true</maven.reports.generate>

        <!-- to activate or not the generation of detail dependencies in site -->
        <maven.reports.dependencyDetailsEnabled>true</maven.reports.dependencyDetailsEnabled>

        <!-- to activate or not the generation of location detail of dependencies in site -->
        <maven.reports.dependencyLocationsEnabled>true</maven.reports.dependencyLocationsEnabled>

        <!-- pb with 2.6 + doxia-jrst-module + maven-helper-plugin -->
        <javadoc.version>2.5</javadoc.version>

        <!-- pour ne pas generer la javadoc -->
        <maven.javadoc.skip>false</maven.javadoc.skip>

        <!-- pour modifier la verbosite de la javadoc -->
        <maven.javadoc.quiet>true</maven.javadoc.quiet>

        <maven.version>2.2.1</maven.version>

        <maven-plugin-tools-javadoc.version>2.5.1</maven-plugin-tools-javadoc.version>
        <!--<plexus-javadoc.version>1.0</plexus-javadoc.version>-->
        <plexus-component-javadoc.version>1.3.0</plexus-component-javadoc.version>

        <helper.version>1.2.2</helper.version>
        <jredmine.version>1.1.3</jredmine.version>
        <license.version>2.0.2</license.version>
        <jrst.version>1.1.0</jrst.version>
        <skin.version>1.0.3</skin.version>

        <!-- release repository url (to be used in site.xml) -->
        <repository.home.url>http://maven.nuiton.org/release</repository.home.url>
    </properties>

    <packaging>pom</packaging>

    <build>

        <!--Ressources-->
        <resources>
            <resource>
                <directory>${maven.src.dir}/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
                <excludes>
                    <exclude>**/*~</exclude>
                </excludes>
            </resource>
        </resources>

        <plugins>

            <plugin>

                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>check-project-files</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <phase>initialize</phase>
                        <configuration>
                            <rules>
                                <requireFilesExist>
                                    <files>
                                        <file>LICENSE.txt</file>
                                        <file>README.txt</file>
                                        <file>changelog.txt</file>
                                    </files>
                                </requireFilesExist>
                            </rules>
                            <ignoreCache>true</ignoreCache>
                            <failFast>true</failFast>
                            <fail>true</fail>

                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>

        <pluginManagement>

            <plugins>

                <plugin>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>1.0-beta-1</version>
                </plugin>

                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.4.1</version>
                    <configuration>
                        <encoding>${project.build.sourceEncoding}</encoding>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.1</version>
                    <configuration>
                        <source>${maven.compile.source}</source>
                        <target>${maven.compile.target}</target>
                        <encoding>${project.build.sourceEncoding}</encoding>
                        <showDeprecation>true</showDeprecation>
                        <showWarnings>true</showWarnings>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.5</version>
                    <configuration>
                        <skip>${maven.test.skip}</skip>
                        <testFailureIgnore>${maven.test.testFailureIgnore}
                        </testFailureIgnore>
                        <forkMode>${maven.test.forkMode}</forkMode>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.1</version>
                </plugin>

                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>2.1-beta-1</version>
                    <configuration>
                        <warSourceDirectory>${maven.src.dir}/main/webapp
                        </warSourceDirectory>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.3</version>
                    <inherited>true</inherited>

                    <configuration>
                        <archive>
                            <!-- cela fait bugger le chargement des service via
                                 ServiceLoader donc on desactive -->
                            <!--index>true</index-->
                            <manifest>
                                <mainClass>${maven.jar.main.class}</mainClass>
                            </manifest>
                            <manifestEntries>
                                <url>${project.url}</url>
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.1.1</version>
                </plugin>

                <plugin>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>${javadoc.version}</version>
                    <configuration>
                        <docencoding>${project.reporting.outputEncoding}
                        </docencoding>
                        <encoding>${project.reporting.outputEncoding}</encoding>
                        <charset>${project.reporting.outputEncoding}</charset>
                        <quiet>${maven.javadoc.quiet}</quiet>
                        <skip>${maven.javadoc.skip}</skip>
                        <links>
                            <link>http://java.sun.com/javase/6/docs/api/</link>
                        </links>
                        <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames>
                        <tagletArtifacts>
                            <tagletArtifact>
                                <groupId>org.apache.maven.plugin-tools</groupId>
                                <artifactId>maven-plugin-tools-javadoc</artifactId>
                                <version>${maven-plugin-tools-javadoc.version}</version>
                            </tagletArtifact>
                            <tagletArtifact>
                                <groupId>org.codehaus.plexus</groupId>
                                <artifactId>plexus-component-javadoc</artifactId>
                                <version>${plexus-component-javadoc.version}</version>
                            </tagletArtifact>
                            <!--tagletArtifact>
                                <groupId>org.codehaus.plexus</groupId>
                                <artifactId>plexus-javadoc</artifactId>
                                <version>${plexus-javadoc.version}</version>
                            </tagletArtifact-->
                        </tagletArtifacts>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>2.1</version>
                    <configuration>
                        <inputEncoding>${project.reporting.outputEncoding}</inputEncoding>
                        <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
                        <generateReports>${maven.reports.generate}</generateReports>
                        <locales>${siteLocales}</locales>
                        <generateSitemap>true</generateSitemap>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>org.nuiton</groupId>
                            <artifactId>maven-nuiton-skin</artifactId>
                            <version>${skin.version}</version>
                        </dependency>
                    </dependencies>
                </plugin>

                <plugin>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.0</version>
                    <configuration>
                        <!-- all modules follow the mavenpom version, don't ask it -->
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                        <!-- always sign with gpg artifacts in release repository -->
                        <releaseProfiles>release-sign-artifacts</releaseProfiles>
                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>2.5.1</version>
                </plugin>

                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.2-beta-5</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.nuiton</groupId>
                            <artifactId>maven-helper-plugin</artifactId>
                            <version>${helper.version}</version>
                        </dependency>
                    </dependencies>
                </plugin>

                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.3</version>
                </plugin>

                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.4</version>
                </plugin>

                <plugin>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>1.0</version>
                </plugin>

                <plugin>
                    <groupId>org.nuiton.thirdparty</groupId>
                    <artifactId>webstart-maven-plugin</artifactId>
                    <version>1.0-alpha-2-cl_20091001</version>
                    <configuration>

                        <libPath>lib</libPath>
                        <makeArchive>false</makeArchive>
                        <verbose>false</verbose>

                        <jnlp>
                            <mainClass>${maven.jar.main.class}</mainClass>
                            <allPermissions>true</allPermissions>
                            <offlineAllowed>true</offlineAllowed>
                        </jnlp>
                        <sign>
                            <keystore>${keystorepath}</keystore>
                            <storepass>${keystorepass}</storepass>
                            <alias>${keyalias}</alias>
                            <keypass>${keypass}</keypass>
                            <verify>true</verify>
                            <keystoreConfig>
                                <delete>false</delete>
                                <gen>false</gen>
                            </keystoreConfig>
                        </sign>

                    </configuration>
                </plugin>

                <plugin>
                    <artifactId>maven-invoker-plugin</artifactId>
                    <version>1.5</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>1.1.1</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.plexus</groupId>
                    <artifactId>plexus-component-metadata</artifactId>
                    <version>1.5.2</version>
                </plugin>

                <plugin>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>maven-jetty-plugin</artifactId>
                    <version>6.1.22</version>
                </plugin>

                <plugin>
                    <groupId>org.nuiton</groupId>
                    <artifactId>maven-helper-plugin</artifactId>
                    <version>${helper.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.nuiton.jredmine</groupId>
                    <artifactId>maven-jredmine-plugin</artifactId>
                    <version>${jredmine.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.nuiton</groupId>
                    <artifactId>maven-license-plugin</artifactId>
                    <version>${license.version}</version>
                </plugin>

            </plugins>
        </pluginManagement>

    </build>

    <!--Site-->
    <reporting>
        <plugins>

            <!-- 
             The Project Info Reports Plugin has twelve goals:
             see http://maven.apache.org/plugins/maven-project-info-reports-plugin
            -->
            <plugin>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.1.2</version>
                <configuration>
                    <dependencyDetailsEnabled>${maven.reports.dependencyDetailsEnabled}</dependencyDetailsEnabled>
                    <dependencyLocationsEnabled>${maven.reports.dependencyLocationsEnabled}</dependencyLocationsEnabled>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>project-team</report>
                            <report>mailing-list</report>
                            <report>cim</report>
                            <report>issue-tracking</report>
                            <report>license</report>
                            <report>scm</report>
                            <report>dependencies</report>
                            <report>dependency-convergence</report>
                            <report>plugin-management</report>
                            <report>plugins</report>
                            <report>dependency-management</report>
                            <report>summary</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${javadoc.version}</version>
                <configuration>
                    <docencoding>${project.build.sourceEncoding}</docencoding>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <charset>${project.reporting.outputEncoding}</charset>
                    <quiet>${maven.javadoc.quiet}</quiet>
                    <skip>${maven.javadoc.skip}</skip>
                    <links>
                        <link>http://java.sun.com/javase/6/docs/api/</link>
                    </links>
                    <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames>
                    <tagletArtifacts>
                        <tagletArtifact>
                            <groupId>org.apache.maven.plugin-tools</groupId>
                            <artifactId>maven-plugin-tools-javadoc</artifactId>
                            <version>${maven-plugin-tools-javadoc.version}</version>
                        </tagletArtifact>
                        <tagletArtifact>
                            <groupId>org.codehaus.plexus</groupId>
                            <artifactId>plexus-component-javadoc</artifactId>
                            <version>${plexus-component-javadoc.version}</version>
                        </tagletArtifact>
                        <!--tagletArtifact>
                            <groupId>org.codehaus.plexus</groupId>
                            <artifactId>plexus-javadoc</artifactId>
                            <version>${plexus-javadoc.version}</version>
                        </tagletArtifact-->
                    </tagletArtifacts>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>javadoc</report>
                            <report>test-javadoc</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

            <!-- changelog:changelog
                 changelog:dev-activity
                 changelog:file-activity -->
            <!--FIXME : TC-20090816 : there is a bug with fileactivity
                in report, trunk url are prefix with tag/xxx-releaseNumber !-->
            <plugin>
                <artifactId>maven-changelog-plugin</artifactId>
                <version>2.1</version>
                <!--configuration>
                    <displayFileDetailUrl>http://svn.${platform}/svn/${projectId}%FILE%</displayFileDetailUrl>
                </configuration-->
            </plugin>

            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <encoding>${project.reporting.outputEncoding}</encoding>
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <linkXRef>true</linkXRef>
                    <sourceEncoding>${project.reporting.outputEncoding}</sourceEncoding>
                    <minimumTokens>100</minimumTokens>
                    <targetJdk>${maven.compile.target}</targetJdk>
                </configuration>

            </plugin>

            <plugin>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.1</version>
            </plugin>

            <plugin>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.5</version>
            </plugin>

            <!-- a voir si on le garde car hudson le fait aussi ? -->
            <!--plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.3</version>
            </plugin-->

            <!-- a tester si c'est viable sur du multi-module -->
            <!-- il y a une version 2.1 voir pour la conf car sans conf ca plante -->
            <!--plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>1.2</version>
            </plugin-->

        </plugins>
    </reporting>

    <!-- ************************************************************* -->
    <!-- *** Maven Environment *************************************** -->
    <!-- ************************************************************* -->

    <!-- prerequisites -->
    <prerequisites>
        <maven>2.1.0</maven>
    </prerequisites>

    <!--Distribution-->
    <distributionManagement>
        <repository>
            <id>nuiton</id>
            <url>scpexe://nuiton.org/var/lib/maven/release</url>
        </repository>
        <snapshotRepository>
            <id>nuiton</id>
            <url>scpexe://nuiton.org/var/lib/maven/snapshot</url>
        </snapshotRepository>
        <site>
            <id>nuiton</id>
            <url>scpexe://nuiton.org/var/lib/redmine-${platform}/project-site/${projectId}</url>
        </site>
    </distributionManagement>

    <!-- Maven Environment : profiles -->
    <profiles>

        <!-- do not execute tests (generaly a bad idea...) -->
        <profile>
            <id>notests</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <maven.test.skip>true</maven.test.skip>
            </properties>
        </profile>
        <!-- do not build reports (speedup site generation in dev) -->
        <profile>
            <id>noreports</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <maven.reports.generate>false</maven.reports.generate>
            </properties>
        </profile>

        <!-- do not build dependencies detail in maven-project-info-report (speedup site generation in dev) -->
        <profile>
            <id>nodepdetails</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <maven.reports.dependencyDetailsEnabled>false</maven.reports.dependencyDetailsEnabled>
            </properties>
        </profile>
        <!-- do not build locations of dependencies in maven-project-info-report (speedup site generation in dev) -->
        <profile>
            <id>nodeplocations</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <maven.reports.dependencyLocationsEnabled>false</maven.reports.dependencyLocationsEnabled>
            </properties>
        </profile>

        <!-- perform only on a release stage when using the maven-release-plugin -->
        <profile>
            <id>release-profile</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>

                <plugins>

                    <!-- always compute source jar -->
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- always compute javadoc jar -->
                    <plugin>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- add license and third-party files to build -->
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-licenses</id>
                                <goals>
                                    <goal>add-license</goal>
                                    <goal>add-third-party</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <id>ensure-no-container-api</id>
                                <configuration>
                                    <rules>
                                        <bannedDependencies>
                                            <excludes>
                                                <exclude>org.codehaus.plexus:plexus-component-api</exclude>
                                            </excludes>
                                            <message>The new containers are not supported. You probably added a
                                                dependency that is missing the exclusions.
                                            </message>
                                        </bannedDependencies>
                                    </rules>
                                    <fail>true</fail>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>

            </build>
        </profile>

        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performSign</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-pgp-passphrase</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>verify</phase>
                                <configuration>
                                    <serverId>gpg-signer</serverId>
                                    <usernameOut>gpg.keyname</usernameOut>
                                    <passwordOut>gpg.passphrase</passwordOut>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- use this plugin to run the main class -->
        <profile>
            <id>run</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <defaultGoal>package</defaultGoal>
                <plugins>
                    <plugin>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>check-run</id>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <phase>initialize</phase>
                                <configuration>
                                    <rules>
                                        <requireProperty>
                                            <property>maven.jar.main.class</property>
                                            <message>Could not find the "maven.jar.main.class" required property, use
                                                -Dmaven.jar.main.class=your.main.class.fqn
                                            </message>
                                        </requireProperty>
                                    </rules>
                                    <ignoreCache>true</ignoreCache>
                                    <failFast>true</failFast>
                                    <fail>true</fail>

                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run</id>
                                <goals>
                                    <goal>java</goal>
                                </goals>
                                <phase>compile</phase>
                                <configuration>
                                    <mainClass>${maven.jar.main.class}</mainClass>
                                    <classpathScope>runtime</classpathScope>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>
            </build>
            <properties>
                <exec.mainClass>${maven.jar.main.class}</exec.mainClass>
                <exec.classpathScope>runtime</exec.classpathScope>
            </properties>
        </profile>

        <!-- ce plugin permet de deployer un site en local -->
        <profile>
            <id>staging-site-profile</id>
            <activation>
                <property>
                    <name>stagingSite</name>
                    <value>true</value>
                </property>
            </activation>
            <properties>
                <stagingUrl>scpexe://localhost/var/www/maven-staging-site</stagingUrl>
            </properties>
            <distributionManagement>
                <site>
                    <id>staging-site</id>
                    <url>${stagingUrl}</url>
                </site>
            </distributionManagement>
        </profile>

        <!-- ce profile permet de generer les entetes de licenses pour les
             fichiers java -->
        <profile>
            <id>update-java-header</id>
            <activation>
                <property>
                    <name>updateJavaHeader</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <defaultGoal>process-resources</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-java-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- ce profile permet de generer les entetes de licenses pour les
             fichiers JAXX -->
        <profile>
            <id>update-jaxx-header</id>
            <activation>
                <property>
                    <name>updateJaxxHeader</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <defaultGoal>process-resources</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-jaxx-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <generatorName>license-xml</generatorName>
                                    <includes>**/*.jaxx</includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- ce profile permet de generer les entetes de licenses pour les
             fichiers css JAXX -->
        <profile>
            <id>update-jaxx-css-header</id>
            <activation>
                <property>
                    <name>updateJaxxCssHeader</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <defaultGoal>process-resources</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-jaxx-css-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <generatorName>license-java</generatorName>
                                    <includes>**/*.css</includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- ce profile permet de generer les entetes de licenses pour les
             fichiers properties -->
        <profile>
            <id>update-properties-header</id>
            <activation>
                <property>
                    <name>updatePropertiesHeader</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <defaultGoal>process-resources</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-properties-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <generatorName>license-properties</generatorName>
                                    <compileSourceRoots>${basedir}/src/main/resources</compileSourceRoots>
                                    <testSourceRoots>${basedir}/src/test/resources</testSourceRoots>
                                    <includes>**/*.properties</includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>update-site-header</id>
            <activation>
                <property>
                    <name>updateSiteHeader</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <defaultGoal>process-resources</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-license-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>update-site-xml-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <compileSourceRoots>${basedir}/src/site
                                    </compileSourceRoots>
                                    <generatorName>license-xml</generatorName>
                                    <includes>**/*.xml</includes>
                                </configuration>
                            </execution>
                            <execution>
                                <id>update-site-apt-header</id>
                                <goals>
                                    <goal>update-header</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <compileSourceRoots>${basedir}/src/site
                                    </compileSourceRoots>
                                    <generatorName>license-apt</generatorName>
                                    <includes>**/*.apt</includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <!-- just add to build the webstart -->
        <profile>
            <id>webstart-profile</id>
            <activation>
                <property>
                    <name>doWebstart</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>

                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-keystore</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <serverId>codelutin-keystore</serverId>
                                    <privateKeyOut>keystorepath</privateKeyOut>
                                    <passwordOut>keystorepass</passwordOut>
                                    <usernameOut>keyalias</usernameOut>
                                    <passphraseOut>keypass</passphraseOut>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.nuiton.thirdparty</groupId>
                        <artifactId>webstart-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-jnlp</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jnlp-inline</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>

        <!-- just add to buil the local webstart (codebase will be in target/jnlp) -->
        <profile>
            <id>local-webstart-profile</id>
            <activation>
                <property>
                    <name>doLocalWebstart</name>
                    <value>true</value>
                </property>
            </activation>
            <properties>
                <jnlp.codebase>file://${project.build.directory}/jnlp</jnlp.codebase>
            </properties>
            <build>
                <plugins>

                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-keystore</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <serverId>codelutin-keystore</serverId>
                                    <privateKeyOut>keystorepath</privateKeyOut>
                                    <passwordOut>keystorepass</passwordOut>
                                    <usernameOut>keyalias</usernameOut>
                                    <passphraseOut>keypass</passphraseOut>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.nuiton.thirdparty</groupId>
                        <artifactId>webstart-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>generate-jnlp-local</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jnlp-inline</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>

        <!-- ce profile est dedie uniquement a mavenpom pour faire des releases
             pour corriger les url de deployements qui marcheront pour tous les
             poms héritant de mavenpom, mais pas pour mavenpom lui-même...
             
             Lors d'une release, il faut donc faire :
             
             mvn release:perform -Dinternal

             ou
             
             mvn release:perform -Pinternal
        -->
        <profile>
            <id>internal</id>
            <activation>
                <property>
                    <name>internal</name>
                    <value>true</value>
                </property>
            </activation>
            <properties>

                <projectId>mavenpom</projectId>
                <!-- TODO use this when english documentation will be ok -->
                <siteLocales>fr,en</siteLocales>
                <siteSourcesType>apt</siteSourcesType>

                <!-- must fail if redmine actions failed -->
                <redmine.safe>true</redmine.safe>

                <!-- redmine configuration -->
                <redmine.url>http://www.${platform}</redmine.url>
                <redmine.projectId>${projectId}</redmine.projectId>
                <redmine.xmlPath>${maven.gen.dir}/changes/changes.xml</redmine.xmlPath>
                <redmine.collectedArtifacts>target/collect-artifacts.txt</redmine.collectedArtifacts>
                <redmine.deploymentUrl>${repository.home.url}</redmine.deploymentUrl>
                <!-- extra files to include in release -->
                <redmine.releaseFiles />

            </properties>

            <build>
                <pluginManagement>
                    <plugins>

                        <plugin>
                            <artifactId>maven-release-plugin</artifactId>
                            <configuration>
                                <!-- activate this profile while doing release:prepare -->
                                <prepareVerifyArgs>-Dinternal</prepareVerifyArgs>
                                <!-- activate this profile while doing release:perform -->
                                <releaseProfiles>internal,release-sign-artifacts</releaseProfiles>
                            </configuration>
                        </plugin>

                    </plugins>
                </pluginManagement>

                <plugins>

                    <!--
                     - obtain redmine login (for both cycle default and site)
                     - collect artifacts files
                     - collect attachments files
                     -->
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-redmine-login</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>initialize</phase>
                                <inherited>false</inherited>
                                <configuration>
                                    <serverId>redmine-nuiton.org</serverId>
                                    <usernameOut>redmine.username</usernameOut>
                                    <!-- TC-20100124 just expose username, no need
                                         password -->
                                    <!--<passwordOut>redmine.password</passwordOut>-->
                                </configuration>
                            </execution>
                            <execution>
                                <id>collect-build-artifacts</id>
                                <goals>
                                    <goal>collect-files</goal>
                                </goals>
                                <phase>install</phase>
                                <configuration>
                                    <descriptionFile>${redmine.collectedArtifacts}</descriptionFile>
                                    <includeAttached>true</includeAttached>
                                    <includeSiteAttached>true</includeSiteAttached>
                                    <copyFiles>true</copyFiles>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- generate the changes.xml from redmine -->
                    <plugin>
                        <groupId>org.nuiton.jredmine</groupId>
                        <artifactId>maven-jredmine-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>jredmine-generate-changes</id>
                                <goals>
                                    <goal>generate-changes</goal>
                                </goals>
                                <!-- use this phase to avoid multi-invocations -->
                                <phase>process-classes</phase>
                            </execution>
                        </executions>
                        <configuration>

                            <generateOnce>true</generateOnce>
                            <actionMapping>fix:1, add:2</actionMapping>
                            <statusIds>3,4,5</statusIds>

                        </configuration>
                    </plugin>

                </plugins>
            </build>

            <reporting>
                <plugins>

                    <plugin>
                        <artifactId>maven-changes-plugin</artifactId>
                        <version>2.3</version>
                        <configuration>
                            <issueLinkTemplatePerSystem>
                                <redmine>${redmine.issueLinkTemplate}</redmine>
                            </issueLinkTemplatePerSystem>
                            <xmlPath>${redmine.xmlPath}</xmlPath>
                        </configuration>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>changes-report</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>

                    <plugin>
                        <groupId>org.nuiton.jredmine</groupId>
                        <artifactId>maven-jredmine-plugin</artifactId>
                        <version>${jredmine.version}</version>
                        <configuration>
                            <columnNames>
                                key,summary,status,assignee,tracker,priority,version,category,createdOn
                            </columnNames>
                        </configuration>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>issues-report</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>

                </plugins>
            </reporting>

        </profile>

        <!--
        
        -->
        <profile>
            <id>internalRedminePreRelease</id>
            <activation>
                <property>
                    <name>internalRedminePreRelease</name>
                    <value>true</value>
                </property>
            </activation>

            <properties>
                <!-- always force user to add -DdryRun to perform redmine actions -->
                <dryRun>true</dryRun>
                <redmine.dryRun>${dryRun}</redmine.dryRun>
            </properties>

            <build>

                <defaultGoal>generate-sources</defaultGoal>

                <plugins>
                    <!--
                     - obtain redmine login
                     -->
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-redmine-login</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <serverId>redmine-${platform}</serverId>
                                    <passwordOut>redmine.password</passwordOut>
                                    <usernameOut>redmine.username</usernameOut>
                                </configuration>
                            </execution>

                        </executions>
                    </plugin>
                    <!--
                      - upload attachments
                      - generate the changes.xml from redmine
                      -->
                    <plugin>
                        <groupId>org.nuiton.jredmine</groupId>
                        <artifactId>maven-jredmine-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>jredmine-pre-release</id>
                                <goals>
                                    <goal>publish-attachments</goal>
                                    <goal>generate-news-announcement</goal>
                                    <goal>generate-email-announcement</goal>
                                </goals>
                                <phase>generate-sources</phase>
                                <inherited>false</inherited>
                                <configuration>

                                    <!-- publish-attachments -->
                                    <filesFromProperties>${redmine.collectedAttachments}</filesFromProperties>

                                    <!-- generate announcements -->
                                    <urlDownload>${redmine.url}/projects/list_files/${projectId}</urlDownload>
                                    <artifactsFile>${redmine.collectedArtifacts}</artifactsFile>

                                </configuration>
                            </execution>
                        </executions>

                    </plugin>

                </plugins>
            </build>

        </profile>

        <!-- perform a redmine release after a successfull release -->
        <profile>
            <id>internalRedmineRelease</id>
            <activation>
                <property>
                    <name>internalRedmineRelease</name>
                    <value>true</value>
                </property>
            </activation>

            <properties>
                <!-- always force user to add -DdryRun to perform redmine actions -->
                <dryRun>true</dryRun>
                <redmine.dryRun>${dryRun}</redmine.dryRun>
            </properties>

            <build>

                <defaultGoal>validate</defaultGoal>

                <plugins>
                    <!--
                     - obtain redmine login
                     - send release email
                     -->
                    <plugin>
                        <groupId>org.nuiton</groupId>
                        <artifactId>maven-helper-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>get-redmine-login</id>
                                <goals>
                                    <goal>share-server-secret</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <serverId>redmine-${platform}</serverId>
                                    <passwordOut>redmine.password</passwordOut>
                                    <usernameOut>redmine.username</usernameOut>
                                </configuration>
                            </execution>
                            <execution>
                                <id>send-release-email</id>
                                <goals>
                                    <goal>send-email</goal>
                                </goals>
                                <phase>validate</phase>
                                <inherited>false</inherited>
                            </execution>
                        </executions>
                        <configuration>

                            <!-- for a multi-module just run on root project -->
                            <runOnce>true</runOnce>

                            <emailTitle>[ANN] - ${project.name} ${project.version} released</emailTitle>
                            <emailContentFile>
                                target/generated-sources/announcement/release-email-announcement.vm
                            </emailContentFile>
                            <mailSender>
                                <name>${platform} Release Notification</name>
                                <email>noreply@${platform}</email>
                            </mailSender>
                            <toAddresses>
                                <item>${listId}-users@list.${platform}</item>
                                <item>${listId}-devel@list.${platform}</item>
                                <item>announce-${platform}@list.${platform}</item>
                            </toAddresses>
                            <smtpHost>smtp</smtpHost>
                            <!-- fix bug #146 -->
                            <encoding>iso-8859-1</encoding>
                        </configuration>
                    </plugin>

                    <!--
                     - update version in redmine
                     - publish a release news in redmine
                    -->
                    <plugin>
                        <groupId>org.nuiton.jredmine</groupId>
                        <artifactId>maven-jredmine-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>jredmine-release</id>
                                <goals>
                                    <goal>update-version</goal>
                                    <goal>publish-news</goal>
                                </goals>
                                <phase>validate</phase>
                                <inherited>false</inherited>
                            </execution>
                        </executions>
                        <configuration>

                            <!-- for a multi-module just run on root project -->
                            <runOnce>true</runOnce>

                            <!-- update-version -->
                            <closeVersion>true</closeVersion>

                            <!-- publish-news -->
                            <newsContentFile>
                                target/generated-sources/announcement/release-news-announcement.vm
                            </newsContentFile>
                            <newsSummary>${project.description}</newsSummary>
                            <newsTitle>${project.name} ${project.version} released</newsTitle>

                        </configuration>
                    </plugin>

                </plugins>

            </build>
        </profile>

    </profiles>

</project>
