[Lutinbuilder-commits] r395 - in lutinproject/tags: . 3.5.2
Author: tchemit Date: 2009-04-15 21:15:39 +0000 (Wed, 15 Apr 2009) New Revision: 395 Added: lutinproject/tags/3.5.2/ lutinproject/tags/3.5.2/pom.xml Removed: lutinproject/tags/3.5.2/pom.xml Log: [maven-release-plugin] copy for tag 3.5.2 Copied: lutinproject/tags/3.5.2 (from rev 392, lutinproject/trunk) Deleted: lutinproject/tags/3.5.2/pom.xml =================================================================== --- lutinproject/trunk/pom.xml 2009-04-10 08:23:14 UTC (rev 392) +++ lutinproject/tags/3.5.2/pom.xml 2009-04-15 21:15:39 UTC (rev 395) @@ -1,926 +0,0 @@ -<?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 *************************************** --> - <!-- ************************************************************* --> - - <!-- POM Relationships : Coordinates --> - <groupId>org.codelutin</groupId> - <artifactId>lutinproject</artifactId> - <version>3.5.2-SNAPSHOT</version> - - <!-- POM Relationships : Inheritance --> - - <!-- add this in your pom - <parent> - <groupId>org.codelutin</groupId> - <artifactId>lutinproject</artifactId> - <version>3.4</version> - </parent> - --> - - <!-- add dependencyManagement - <dependencyManagement></dependencyManagement> - --> - - <!-- POM Relationships : Inheritance : Dependencies --> - - <dependencies> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.5</version> - <scope>test</scope> - </dependency> - - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <version>1.1.1</version> - <scope>compile</scope> - </dependency> - - </dependencies> - - <!-- POM Relationships : Aggregation --> - - <!-- add modules - <modules></modules> - --> - - <!-- ************************************************************* --> - <!-- *** Project Information ************************************* --> - <!-- ************************************************************* --> - - <name>Codelutin project superpom</name> - - <description>Projet Maven de référence pour l'ensemble des projets Maven.</description> - - <url>${site.home.url}</url> - - <inceptionYear>1999</inceptionYear> - - <licenses> - <license> - <name>LGPL</name> - <url>http://www.gnu.org/licenses/lgpl.txt</url> - <distribution>repo</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>thimel</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>ruchaud</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>chatellier</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> - </developers> - - <organization> - <name>CodeLutin</name> - <url>http://www.codelutin.com/</url> - </organization> - - <!-- ************************************************************* --> - <!-- *** Build Settings ****************************************** --> - <!-- ************************************************************* --> - - <properties> - - <!-- the labs' project id : change this in your pom --> - <labs.id>11</labs.id> - - <!-- this labs' project name : change this in your pom --> - <labs.project>lutinbuilder</labs.project> - - <!-- labs host --> - <labs.host>labs.libre-entreprise.org</labs.host> - - <!-- labs list host --> - <labs.list.host>lists.labs.libre-entreprise.org</labs.list.host> - - <!-- labs builder host --> - <labs.builder.url>http://lutinbuilder.labs.libre-entreprise.org/maven2</labs.builder.url> - - <!-- labs project's url --> - <site.home.url>http://${labs.project}.${labs.host}</site.home.url> - - <!-- by default, java sources are in java 1.6 --> - <maven.compile.source>1.6</maven.compile.source> - - <!-- by default, we compile in java 1.6 --> - <maven.compile.target>1.6</maven.compile.target> - - <!-- by default, we compile in UTF8 --> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <!-- To remove in next release --> - <maven.compile.encoding>${project.build.sourceEncoding}</maven.compile.encoding> - - <!-- by default, use maven 2 source base dir --> - <maven.src.dir>${basedir}/src</maven.src.dir> - - <!-- where to generate source --> - <maven.gen.dir>${project.build.directory}/generated-sources</maven.gen.dir> - - <!-- where to generate test source --> - <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> - - <!-- 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>never</maven.test.forkMode> - - <!-- to activate generation of reports and javadoc when doing a site --> - <maven.reports.generate>true</maven.reports.generate> - - <javadoc.version>2.5</javadoc.version> - - <lutin-enforcer-rules.version>0.2</lutin-enforcer-rules.version> - - <!-- default license to use --> - <license-switcher.licenseName>lgpl_v3</license-switcher.licenseName> - - <!-- pour ne pas generer la javadoc (quand on aura un javadoc 2.5) --> - <maven.javadoc.skip>false</maven.javadoc.skip> - - <scm.url.prefix>http://${labs.host}/plugins/scmsvn/viewcvs.php</scm.url.prefix> - <scm.url.suffix>?root=${labs.project}</scm.url.suffix> - - <scm.dc.prefix>scm:svn:svn+ssh://${username}@${labs.host}</scm.dc.prefix> - <scm.c.prefix>scm:svn:svn://anonymous@${labs.host}</scm.c.prefix> - - <scm.c.suffix>svnroot/${labs.project}/${project.artifactId}/trunk</scm.c.suffix> - <scm.c.suffix.child>svnroot/${labs.project}/${project.parent.artifactId}/trunk/${project.artifactId} - </scm.c.suffix.child> - - <!-- single pom or multi-module pom scm properties --> - <maven.scm.url>${scm.url.prefix}/${project.artifactId}/trunk/${scm.url.suffix}</maven.scm.url> - <maven.scm.developerConnection>${scm.dc.prefix}/${scm.c.suffix}</maven.scm.developerConnection> - <maven.scm.connection>${scm.c.prefix}/${scm.c.suffix}</maven.scm.connection> - - <!-- multi-module level one son pom scm properties --> - <maven.scm.url.child> - ${scm.url.prefix}/${project.parent.artifactId}/trunk/${project.artifactId}/${scm.url.suffix} - </maven.scm.url.child> - <maven.scm.developerConnection.child>${scm.dc.prefix}/${scm.c.suffix.child} - </maven.scm.developerConnection.child> - <maven.scm.connection.child>${scm.c.prefix}/${scm.c.suffix.child}</maven.scm.connection.child> - - </properties> - - <packaging>pom</packaging> - - <build> - - <defaultGoal>install</defaultGoal> - <!--Ressources--> - <resources> - <resource> - <directory>${maven.src.dir}/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>**/*~</exclude> - </excludes> - </resource> - - <!-- FIXME this resource should not be always included in our super-pom ! --> - <!--resource> - <directory>${maven.src.dir}/main/xsl</directory> - <includes> - <include>**/*.xsl</include> - </includes> - </resource--> - </resources> - - <pluginManagement> - - - <plugins> - - <!-- - - - - - - - - --> - <!-- PHASE VALIDATE --> - <!-- - - - - - - - - --> - - <!-- - - - - - - - - - - - --> - <!-- PHASE GENERATE-SOURCES --> - <!-- - - - - - - - - - - - --> - - <!-- - - - - - - - - - - - --> - <!-- PHASE PROCESS-SOURCES --> - <!-- - - - - - - - - - - - --> - - - <!-- - - - - - - - - - - - - --> - <!-- PHASE GENERATE-RESOURCES --> - <!-- - - - - - - - - - - - - --> - - <!-- - - - - - - - - - - - - --> - <!-- PHASE PROCESS-RESOURCES --> - <!-- - - - - - - - - - - - - --> - - <!-- plugin resources --> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <configuration> - <encoding>${project.build.sourceEncoding}</encoding> - </configuration> - </plugin> - - <!-- - - - - - - - --> - <!-- PHASE COMPILE --> - <!-- - - - - - - - --> - - <!-- plugin compiler --> - <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${maven.compile.source}</source> - <target>${maven.compile.target}</target> - <encoding>${project.build.sourceEncoding}</encoding> - </configuration> - </plugin> - - <!-- - - - - - - - - - - - --> - <!-- PHASE PROCESS-CLASSES --> - <!-- - - - - - - - - - - - --> - - <!-- - - - - - --> - <!-- PHASE TEST --> - <!-- - - - - - --> - - <!-- plugin surefire --> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <skip>${maven.test.skip}</skip> - <testFailureIgnore>${maven.test.testFailureIgnore}</testFailureIgnore> - <forkMode>${maven.test.forkMode}</forkMode> - <!--Exclude NaughtyTest.java--> - <!--<includes> - <include>**/*Test.java</include> - </includes> - <excludes> - <exclude>**/NaughtyTest.java</exclude> - </excludes>--> - </configuration> - </plugin> - - <!-- - - - - - - - - --> - <!-- - PHASE PACKAGE --> - <!-- - - - - - - - - --> - - <!-- plugin dependency --> - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy-dependencies</id> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>false</overWriteSnapshots> - <overWriteIfNewer>true</overWriteIfNewer> - <outputDirectory>${project.build.directory}/lib</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!-- plugin war --> - <plugin> - <artifactId>maven-war-plugin</artifactId> - <version>2.1-alpha-2</version> - <configuration> - <warSourceDirectory>${maven.src.dir}/main/webapp</warSourceDirectory> - </configuration> - </plugin> - - <!-- plugin jar --> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <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>${pom.url}</url> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <!-- - - - - - - - --> - <!-- PHASE VERIFY --> - <!-- - - - - - - - --> - - <!-- plugin source --> - <plugin> - <artifactId>maven-source-plugin</artifactId> - <version>2.0.4</version> - <inherited>true</inherited> - <executions> - <execution> - <id>attach-sources</id> - <goals> - <goal>jar</goal> - <!--goal>test-jar</goal--> - </goals> - </execution> - </executions> - </plugin> - - <!-- plugin javadoc --> - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - <version>${javadoc.version}</version> - <configuration> - <docencoding>${project.build.sourceEncoding}</docencoding> - <encoding>${project.build.sourceEncoding}</encoding> - <charset>${project.build.sourceEncoding}</charset> - <quiet>true</quiet> - <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> - </configuration> - <executions> - <execution> - <id>attach-javadocs</id> - <goals> - <goal>jar</goal> - <!--goal>test-jar</goal--> - </goals> - <configuration> - <attach>true</attach> - <quiet>true</quiet> - <!-- uniquement a partir de javadoc 2.5 --> - <!--skip>${maven.javadoc.skip}</skip--> - </configuration> - </execution> - </executions> - - </plugin> - - <!-- - - - - - --> - <!-- PHASE SITE --> - <!-- - - - - - --> - - <!-- plugin site --> - <plugin> - <artifactId>maven-site-plugin</artifactId> - <version>2.0</version> - <configuration> - <inputEncoding>${project.build.sourceEncoding}</inputEncoding> - <outputEncoding>${project.build.sourceEncoding}</outputEncoding> - <generateReports>${maven.reports.generate}</generateReports> - <locales>${maven.site.locales}</locales> - <attach>false</attach> - </configuration> - </plugin> - - </plugins> - </pluginManagement> - - <plugins> - - </plugins> - </build> - - <!--Site--> - <reporting> - <plugins> - - <!-- - The Project Info Reports Plugin has twelve goals: - * project-info-reports:cim is used to generate the Project Continuous Integration System report. - * project-info-reports:dependencies is used to generate the Project Dependencies report. - * project-info-reports:dependency-convergence is used to generate the Project Dependency Convergence report for reactor builds. - * project-info-reports:dependency-management is used to generate the Project DependencyManagement report. - * project-info-reports:index is used to generate the Project index page. - * project-info-reports:issue-tracking is used to generate the Project Issue Tracking report. - * project-info-reports:license is used to generate the Project License report. - * project-info-reports:mailing-list is used to generate the Project Mailing List report. - * project-info-reports:plugin-management is used to generate the Project PluginManagement report. - * project-info-reports:project-team is used to generate the Project Team report. - * project-info-reports:scm is used to generate the Project Source Code Management report. - * project-info-reports:summary is used to generate the Project information reports summary. - --> - <plugin> - <artifactId>maven-project-info-reports-plugin</artifactId> - <version>2.1.1-cl</version> - </plugin> - - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - <version>${javadoc.version}</version> - <configuration> - <quiet>true</quiet> - <docencoding>${project.build.sourceEncoding}</docencoding> - <encoding>${project.build.sourceEncoding}</encoding> - <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> - </configuration> - </plugin> - - <!-- changelog:changelog - changelog:dev-activity - changelog:file-activity --> - <plugin> - <artifactId>maven-changelog-plugin</artifactId> - </plugin> - - <!-- Implicit add of reportSet to not generate jira reports --> - <plugin> - <artifactId>maven-changes-plugin</artifactId> - <reportSets> - <reportSet> - <reports> - <report>changes-report</report> - </reports> - </reportSet> - </reportSets> - </plugin> - - <plugin> - <artifactId>maven-checkstyle-plugin</artifactId> - <configuration> - <encoding>${project.build.sourceEncoding}</encoding> - </configuration> - </plugin> - - <plugin> - <artifactId>maven-pmd-plugin</artifactId> - <configuration> - <linkXRef>true</linkXRef> - <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> - <minimumTokens>100</minimumTokens> - <targetJdk>${maven.compile.target}</targetJdk> - </configuration> - - </plugin> - - <plugin> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - - <plugin> - <artifactId>maven-surefire-report-plugin</artifactId> - </plugin> - - <!-- Not official report plugins --> - <!-- and not working with viewCVS --> - <!--plugin> - <groupId>net.sf</groupId> - <artifactId>stat-scm</artifactId> - <version>1.2.0</version> - </plugin--> - </plugins> - </reporting> - - <!-- ************************************************************* --> - <!-- *** Build Environment ************************************** --> - <!-- ************************************************************* --> - - <!-- Build Environment : Environment Information --> - - <issueManagement> - <system>gforge</system> - <url>http://${labs.host}/tracker/?group_id=${labs.id}</url> - </issueManagement> - - <ciManagement> - <system>hudson</system> - <url>http://hudson.codelutin.com/hudson</url> - <notifiers> - <notifier> - <type>mail</type> - <configuration> - <recipients>dev@codelutin.com</recipients> - </configuration> - <sendOnSuccess>true</sendOnSuccess> - <sendOnError>true</sendOnError> - <address>admin+hudson@codelutin.com</address> - </notifier> - </notifiers> - </ciManagement> - - <!--Any mailing lists for the project--> - <mailingLists> - <mailingList> - <name>${labs.project}-commits</name> - <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-commits</subscribe> - <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-commits</unsubscribe> - <post>${labs.project}-commits@lists.${labs.list.host}</post> - <archive>http://${labs.list.host}/pipermail/${labs.project}-commits/</archive> - </mailingList> - - <mailingList> - <name>${labs.project}-devel</name> - <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-devel</subscribe> - <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-devel</unsubscribe> - <post>${labs.project}-devel@lists.${labs.list.host}</post> - <archive>http://${labs.list.host}/pipermail/${labs.project}-devel/</archive> - </mailingList> - - <mailingList> - <name>${labs.project}-user</name> - <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-user</subscribe> - <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-user</unsubscribe> - <post>${labs.project}-user@lists.${labs.list.host}</post> - <archive>http://${labs.list.host}/pipermail/${labs.project}-user/</archive> - </mailingList> - </mailingLists> - - <!-- - Source control management. - By inheritance, url are always false, need manual include. - - Add this to your pom : - <scm> - <connection>${maven.scm.connection}</connection> - <developerConnection>${maven.scm.developerConnection}</developerConnection> - <url>${maven.scm.url}</url> - </scm> - --> - <scm> - <connection>${maven.scm.connection}</connection> - <developerConnection>${maven.scm.developerConnection}</developerConnection> - <url>${maven.scm.url}</url> - </scm> - - <!-- ************************************************************* --> - <!-- *** Maven Environment *************************************** --> - <!-- ************************************************************* --> - - <!-- prerequisites --> - <prerequisites> - <maven>2.0.8</maven> - </prerequisites> - - <!-- Maven Environment : Repositories --> - - <!--Code Lutin Repository--> - <!-- redescendu dans tous les projets pour qu'ils soitent autonomes --> - <!--repositories> - <repository> - - <id>codelutin-repository</id> - <name>CodeLutinRepository</name> - <url>${labs.builder.url}</url> - <snapshots> - <enabled>true</enabled> - <checksumPolicy>warn</checksumPolicy> - </snapshots> - <releases> - <enabled>true</enabled> - <checksumPolicy>warn</checksumPolicy> - </releases> - </repository> - </repositories--> - - <!-- Code Lutin : plugin repositories --> - <pluginRepositories> - <pluginRepository> - <id>codelutin-plugin-repository</id> - <name>CodeLutinPluginRepository</name> - <url>${labs.builder.url}</url> - <snapshots> - <enabled>true</enabled> - <checksumPolicy>warn</checksumPolicy> - </snapshots> - <releases> - <enabled>true</enabled> - <checksumPolicy>warn</checksumPolicy> - </releases> - </pluginRepository> - </pluginRepositories> - - <!--Distribution--> - <distributionManagement> - <repository> - <id>labs</id> - <url>scpexe://${labs.host}/home/groups/lutinbuilder/htdocs/maven2</url> - </repository> - <site> - <id>labs</id> - <!-- BE WARE, if your project is a a real labs project, you have to - override this property in your pom, otherwise maven will suffix this - value with /${pom.artifactId}. - You just have to copy the same definition for this property in your pom - --> - <url>scpexe://${labs.host}/home/groups/${labs.project}/htdocs</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> - - <!-- 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 check labs properties --> - <plugin> - <artifactId>maven-enforcer-plugin</artifactId> - <version>1.0-beta-1</version> - <executions> - <execution> - <id>lutinproject</id> - <goals> - <goal>enforce</goal> - </goals> - <phase>initialize</phase> - </execution> - </executions> - <configuration> - <rules> - <!-- on verifie que le labs.id et labs.name sont bien surchargés (sauf pour les project de - lutinbuilder). --> - <myCustomRule implementation="org.codelutin.enforcer.CheckLabsPropertiesRule" /> - - <requireProperty> - <property>labs.id</property> - <regex>\d+</regex> - <regexMessage>"labs.id can must be a number!"</regexMessage> - </requireProperty> - <requireProperty> - <property>labs.project</property> - <regex>\w(\w|\d|-)*</regex> - <regexMessage>"labs.project can not be empty!"</regexMessage> - </requireProperty> - <requireFilesExist> - <files> - <file>changelog.txt</file> - <file>LICENSE.txt</file> - <file>README.txt</file> - </files> - </requireFilesExist> - </rules> - <ignoreCache>true</ignoreCache> - <failFast>true</failFast> - <fail>true</fail> - - </configuration> - <dependencies> - <dependency> - <groupId>org.codelutin</groupId> - <artifactId>lutin-enforcer-rules</artifactId> - <version>${lutin-enforcer-rules.version}</version> - </dependency> - </dependencies> - </plugin> - - <!-- always compute source jar --> - <plugin> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - </execution> - </executions> - </plugin> - - <!-- always compute javadoc jar --> - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - <executions> - <execution> - <id>attach-javadocs</id> - </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> - <version>1.0-beta-1</version> - <executions> - <execution> - <id>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> - <version>1.1.1</version> - <executions> - <execution> - <id>run</id> - <goals> - <goal>java</goal> - </goals> - <phase>package</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> - - <!-- profile to fix site url only for the pom --> - <!-- big hack : test the existance of a rst file to know if we are really in the plugin ? --> - <profile> - <id>internalProfile</id> - <activation> - <file> - <exists>src/site/rst/MavenProjectBestPractices.rst</exists> - </file> - <activeByDefault>false</activeByDefault> - </activation> - <distributionManagement> - <site> - <id>labs</id> - <url>scpexe://${labs.host}/home/groups/${labs.project}/htdocs/${project.artifactId}</url> - </site> - </distributionManagement> - <properties> - <site.home.url>http://${labs.project}.${labs.host}/${project.artifactId}</site.home.url> - </properties> - - <build> - <pluginManagement> - <plugins> - <plugin> - <artifactId>maven-site-plugin</artifactId> - <configuration> - <locales>fr</locales> - <siteDirectory>src/site</siteDirectory> - </configuration> - <dependencies> - <dependency> - <groupId>org.codelutin</groupId> - <artifactId>doxia-module-jrst</artifactId> - <version>1.0.0</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </pluginManagement> - </build> - - - </profile> - </profiles> - -</project> Copied: lutinproject/tags/3.5.2/pom.xml (from rev 394, lutinproject/trunk/pom.xml) =================================================================== --- lutinproject/tags/3.5.2/pom.xml (rev 0) +++ lutinproject/tags/3.5.2/pom.xml 2009-04-15 21:15:39 UTC (rev 395) @@ -0,0 +1,926 @@ +<?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 *************************************** --> + <!-- ************************************************************* --> + + <!-- POM Relationships : Coordinates --> + <groupId>org.codelutin</groupId> + <artifactId>lutinproject</artifactId> + <version>3.5.2</version> + + <!-- POM Relationships : Inheritance --> + + <!-- add this in your pom + <parent> + <groupId>org.codelutin</groupId> + <artifactId>lutinproject</artifactId> + <version>3.4</version> + </parent> + --> + + <!-- add dependencyManagement + <dependencyManagement></dependencyManagement> + --> + + <!-- POM Relationships : Inheritance : Dependencies --> + + <dependencies> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.5</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1.1</version> + <scope>compile</scope> + </dependency> + + </dependencies> + + <!-- POM Relationships : Aggregation --> + + <!-- add modules + <modules></modules> + --> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>Codelutin project superpom</name> + + <description>Projet Maven de référence pour l'ensemble des projets Maven.</description> + + <url>${site.home.url}</url> + + <inceptionYear>1999</inceptionYear> + + <licenses> + <license> + <name>LGPL</name> + <url>http://www.gnu.org/licenses/lgpl.txt</url> + <distribution>repo</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>thimel</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>ruchaud</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>chatellier</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> + </developers> + + <organization> + <name>CodeLutin</name> + <url>http://www.codelutin.com/</url> + </organization> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <properties> + + <!-- the labs' project id : change this in your pom --> + <labs.id>11</labs.id> + + <!-- this labs' project name : change this in your pom --> + <labs.project>lutinbuilder</labs.project> + + <!-- labs host --> + <labs.host>labs.libre-entreprise.org</labs.host> + + <!-- labs list host --> + <labs.list.host>lists.labs.libre-entreprise.org</labs.list.host> + + <!-- labs builder host --> + <labs.builder.url>http://lutinbuilder.labs.libre-entreprise.org/maven2</labs.builder.url> + + <!-- labs project's url --> + <site.home.url>http://${labs.project}.${labs.host}</site.home.url> + + <!-- by default, java sources are in java 1.6 --> + <maven.compile.source>1.6</maven.compile.source> + + <!-- by default, we compile in java 1.6 --> + <maven.compile.target>1.6</maven.compile.target> + + <!-- by default, we compile in UTF8 --> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <!-- To remove in next release --> + <maven.compile.encoding>${project.build.sourceEncoding}</maven.compile.encoding> + + <!-- by default, use maven 2 source base dir --> + <maven.src.dir>${basedir}/src</maven.src.dir> + + <!-- where to generate source --> + <maven.gen.dir>${project.build.directory}/generated-sources</maven.gen.dir> + + <!-- where to generate test source --> + <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> + + <!-- 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>never</maven.test.forkMode> + + <!-- to activate generation of reports and javadoc when doing a site --> + <maven.reports.generate>true</maven.reports.generate> + + <javadoc.version>2.5</javadoc.version> + + <lutin-enforcer-rules.version>0.2</lutin-enforcer-rules.version> + + <!-- default license to use --> + <license-switcher.licenseName>lgpl_v3</license-switcher.licenseName> + + <!-- pour ne pas generer la javadoc (quand on aura un javadoc 2.5) --> + <maven.javadoc.skip>false</maven.javadoc.skip> + + <scm.url.prefix>http://${labs.host}/plugins/scmsvn/viewcvs.php</scm.url.prefix> + <scm.url.suffix>?root=${labs.project}</scm.url.suffix> + + <scm.dc.prefix>scm:svn:svn+ssh://${username}@${labs.host}</scm.dc.prefix> + <scm.c.prefix>scm:svn:svn://anonymous@${labs.host}</scm.c.prefix> + + <scm.c.suffix>svnroot/${labs.project}/${project.artifactId}/trunk</scm.c.suffix> + <scm.c.suffix.child>svnroot/${labs.project}/${project.parent.artifactId}/trunk/${project.artifactId} + </scm.c.suffix.child> + + <!-- single pom or multi-module pom scm properties --> + <maven.scm.url>${scm.url.prefix}/${project.artifactId}/trunk/${scm.url.suffix}</maven.scm.url> + <maven.scm.developerConnection>${scm.dc.prefix}/${scm.c.suffix}</maven.scm.developerConnection> + <maven.scm.connection>${scm.c.prefix}/${scm.c.suffix}</maven.scm.connection> + + <!-- multi-module level one son pom scm properties --> + <maven.scm.url.child> + ${scm.url.prefix}/${project.parent.artifactId}/trunk/${project.artifactId}/${scm.url.suffix} + </maven.scm.url.child> + <maven.scm.developerConnection.child>${scm.dc.prefix}/${scm.c.suffix.child} + </maven.scm.developerConnection.child> + <maven.scm.connection.child>${scm.c.prefix}/${scm.c.suffix.child}</maven.scm.connection.child> + + </properties> + + <packaging>pom</packaging> + + <build> + + <defaultGoal>install</defaultGoal> + <!--Ressources--> + <resources> + <resource> + <directory>${maven.src.dir}/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + <excludes> + <exclude>**/*~</exclude> + </excludes> + </resource> + + <!-- FIXME this resource should not be always included in our super-pom ! --> + <!--resource> + <directory>${maven.src.dir}/main/xsl</directory> + <includes> + <include>**/*.xsl</include> + </includes> + </resource--> + </resources> + + <pluginManagement> + + + <plugins> + + <!-- - - - - - - - - --> + <!-- PHASE VALIDATE --> + <!-- - - - - - - - - --> + + <!-- - - - - - - - - - - - --> + <!-- PHASE GENERATE-SOURCES --> + <!-- - - - - - - - - - - - --> + + <!-- - - - - - - - - - - - --> + <!-- PHASE PROCESS-SOURCES --> + <!-- - - - - - - - - - - - --> + + + <!-- - - - - - - - - - - - - --> + <!-- PHASE GENERATE-RESOURCES --> + <!-- - - - - - - - - - - - - --> + + <!-- - - - - - - - - - - - - --> + <!-- PHASE PROCESS-RESOURCES --> + <!-- - - - - - - - - - - - - --> + + <!-- plugin resources --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <configuration> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + + <!-- - - - - - - - --> + <!-- PHASE COMPILE --> + <!-- - - - - - - - --> + + <!-- plugin compiler --> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${maven.compile.source}</source> + <target>${maven.compile.target}</target> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + + <!-- - - - - - - - - - - - --> + <!-- PHASE PROCESS-CLASSES --> + <!-- - - - - - - - - - - - --> + + <!-- - - - - - --> + <!-- PHASE TEST --> + <!-- - - - - - --> + + <!-- plugin surefire --> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>${maven.test.skip}</skip> + <testFailureIgnore>${maven.test.testFailureIgnore}</testFailureIgnore> + <forkMode>${maven.test.forkMode}</forkMode> + <!--Exclude NaughtyTest.java--> + <!--<includes> + <include>**/*Test.java</include> + </includes> + <excludes> + <exclude>**/NaughtyTest.java</exclude> + </excludes>--> + </configuration> + </plugin> + + <!-- - - - - - - - - --> + <!-- - PHASE PACKAGE --> + <!-- - - - - - - - - --> + + <!-- plugin dependency --> + <plugin> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <overWriteIfNewer>true</overWriteIfNewer> + <outputDirectory>${project.build.directory}/lib</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!-- plugin war --> + <plugin> + <artifactId>maven-war-plugin</artifactId> + <version>2.1-alpha-2</version> + <configuration> + <warSourceDirectory>${maven.src.dir}/main/webapp</warSourceDirectory> + </configuration> + </plugin> + + <!-- plugin jar --> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <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>${pom.url}</url> + </manifestEntries> + </archive> + </configuration> + </plugin> + + <!-- - - - - - - - --> + <!-- PHASE VERIFY --> + <!-- - - - - - - - --> + + <!-- plugin source --> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <version>2.0.4</version> + <inherited>true</inherited> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + <!--goal>test-jar</goal--> + </goals> + </execution> + </executions> + </plugin> + + <!-- plugin javadoc --> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${javadoc.version}</version> + <configuration> + <docencoding>${project.build.sourceEncoding}</docencoding> + <encoding>${project.build.sourceEncoding}</encoding> + <charset>${project.build.sourceEncoding}</charset> + <quiet>true</quiet> + <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> + </configuration> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + <!--goal>test-jar</goal--> + </goals> + <configuration> + <attach>true</attach> + <quiet>true</quiet> + <!-- uniquement a partir de javadoc 2.5 --> + <!--skip>${maven.javadoc.skip}</skip--> + </configuration> + </execution> + </executions> + + </plugin> + + <!-- - - - - - --> + <!-- PHASE SITE --> + <!-- - - - - - --> + + <!-- plugin site --> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>2.0</version> + <configuration> + <inputEncoding>${project.build.sourceEncoding}</inputEncoding> + <outputEncoding>${project.build.sourceEncoding}</outputEncoding> + <generateReports>${maven.reports.generate}</generateReports> + <locales>${maven.site.locales}</locales> + <attach>false</attach> + </configuration> + </plugin> + + </plugins> + </pluginManagement> + + <plugins> + + </plugins> + </build> + + <!--Site--> + <reporting> + <plugins> + + <!-- + The Project Info Reports Plugin has twelve goals: + * project-info-reports:cim is used to generate the Project Continuous Integration System report. + * project-info-reports:dependencies is used to generate the Project Dependencies report. + * project-info-reports:dependency-convergence is used to generate the Project Dependency Convergence report for reactor builds. + * project-info-reports:dependency-management is used to generate the Project DependencyManagement report. + * project-info-reports:index is used to generate the Project index page. + * project-info-reports:issue-tracking is used to generate the Project Issue Tracking report. + * project-info-reports:license is used to generate the Project License report. + * project-info-reports:mailing-list is used to generate the Project Mailing List report. + * project-info-reports:plugin-management is used to generate the Project PluginManagement report. + * project-info-reports:project-team is used to generate the Project Team report. + * project-info-reports:scm is used to generate the Project Source Code Management report. + * project-info-reports:summary is used to generate the Project information reports summary. + --> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>2.1.1-cl</version> + </plugin> + + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${javadoc.version}</version> + <configuration> + <quiet>true</quiet> + <docencoding>${project.build.sourceEncoding}</docencoding> + <encoding>${project.build.sourceEncoding}</encoding> + <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> + </configuration> + </plugin> + + <!-- changelog:changelog + changelog:dev-activity + changelog:file-activity --> + <plugin> + <artifactId>maven-changelog-plugin</artifactId> + </plugin> + + <!-- Implicit add of reportSet to not generate jira reports --> + <plugin> + <artifactId>maven-changes-plugin</artifactId> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + + <plugin> + <artifactId>maven-checkstyle-plugin</artifactId> + <configuration> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-pmd-plugin</artifactId> + <configuration> + <linkXRef>true</linkXRef> + <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>${maven.compile.target}</targetJdk> + </configuration> + + </plugin> + + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + + <plugin> + <artifactId>maven-surefire-report-plugin</artifactId> + </plugin> + + <!-- Not official report plugins --> + <!-- and not working with viewCVS --> + <!--plugin> + <groupId>net.sf</groupId> + <artifactId>stat-scm</artifactId> + <version>1.2.0</version> + </plugin--> + </plugins> + </reporting> + + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <!-- Build Environment : Environment Information --> + + <issueManagement> + <system>gforge</system> + <url>http://${labs.host}/tracker/?group_id=${labs.id}</url> + </issueManagement> + + <ciManagement> + <system>hudson</system> + <url>http://hudson.codelutin.com/hudson</url> + <notifiers> + <notifier> + <type>mail</type> + <configuration> + <recipients>dev@codelutin.com</recipients> + </configuration> + <sendOnSuccess>true</sendOnSuccess> + <sendOnError>true</sendOnError> + <address>admin+hudson@codelutin.com</address> + </notifier> + </notifiers> + </ciManagement> + + <!--Any mailing lists for the project--> + <mailingLists> + <mailingList> + <name>${labs.project}-commits</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-commits</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-commits</unsubscribe> + <post>${labs.project}-commits@lists.${labs.list.host}</post> + <archive>http://${labs.list.host}/pipermail/${labs.project}-commits/</archive> + </mailingList> + + <mailingList> + <name>${labs.project}-devel</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-devel</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-devel</unsubscribe> + <post>${labs.project}-devel@lists.${labs.list.host}</post> + <archive>http://${labs.list.host}/pipermail/${labs.project}-devel/</archive> + </mailingList> + + <mailingList> + <name>${labs.project}-user</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-user</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${labs.project}-user</unsubscribe> + <post>${labs.project}-user@lists.${labs.list.host}</post> + <archive>http://${labs.list.host}/pipermail/${labs.project}-user/</archive> + </mailingList> + </mailingLists> + + <!-- + Source control management. + By inheritance, url are always false, need manual include. + + Add this to your pom : + <scm> + <connection>${maven.scm.connection}</connection> + <developerConnection>${maven.scm.developerConnection}</developerConnection> + <url>${maven.scm.url}</url> + </scm> + --> + <scm> + <connection>scm:svn:svn://anonymous@labs.libre-entreprise.org/svnroot/lutinbuilder/lutinproject/tags/3.5.2</connection> + <developerConnection>scm:svn:svn+ssh://tchemit@labs.libre-entreprise.org/svnroot/lutinbuilder/lutinproject/tags/3.5.2</developerConnection> + <url>http://labs.libre-entreprise.org/plugins/scmsvn/viewcvs.php/lutinproject/tags/3.5.2?root=lutinbuilder</url> + </scm> + + <!-- ************************************************************* --> + <!-- *** Maven Environment *************************************** --> + <!-- ************************************************************* --> + + <!-- prerequisites --> + <prerequisites> + <maven>2.0.8</maven> + </prerequisites> + + <!-- Maven Environment : Repositories --> + + <!--Code Lutin Repository--> + <!-- redescendu dans tous les projets pour qu'ils soitent autonomes --> + <!--repositories> + <repository> + + <id>codelutin-repository</id> + <name>CodeLutinRepository</name> + <url>${labs.builder.url}</url> + <snapshots> + <enabled>true</enabled> + <checksumPolicy>warn</checksumPolicy> + </snapshots> + <releases> + <enabled>true</enabled> + <checksumPolicy>warn</checksumPolicy> + </releases> + </repository> + </repositories--> + + <!-- Code Lutin : plugin repositories --> + <pluginRepositories> + <pluginRepository> + <id>codelutin-plugin-repository</id> + <name>CodeLutinPluginRepository</name> + <url>${labs.builder.url}</url> + <snapshots> + <enabled>true</enabled> + <checksumPolicy>warn</checksumPolicy> + </snapshots> + <releases> + <enabled>true</enabled> + <checksumPolicy>warn</checksumPolicy> + </releases> + </pluginRepository> + </pluginRepositories> + + <!--Distribution--> + <distributionManagement> + <repository> + <id>labs</id> + <url>scpexe://${labs.host}/home/groups/lutinbuilder/htdocs/maven2</url> + </repository> + <site> + <id>labs</id> + <!-- BE WARE, if your project is a a real labs project, you have to + override this property in your pom, otherwise maven will suffix this + value with /${pom.artifactId}. + You just have to copy the same definition for this property in your pom + --> + <url>scpexe://${labs.host}/home/groups/${labs.project}/htdocs</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> + + <!-- 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 check labs properties --> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.0-beta-1</version> + <executions> + <execution> + <id>lutinproject</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>initialize</phase> + </execution> + </executions> + <configuration> + <rules> + <!-- on verifie que le labs.id et labs.name sont bien surchargés (sauf pour les project de + lutinbuilder). --> + <myCustomRule implementation="org.codelutin.enforcer.CheckLabsPropertiesRule" /> + + <requireProperty> + <property>labs.id</property> + <regex>\d+</regex> + <regexMessage>"labs.id can must be a number!"</regexMessage> + </requireProperty> + <requireProperty> + <property>labs.project</property> + <regex>\w(\w|\d|-)*</regex> + <regexMessage>"labs.project can not be empty!"</regexMessage> + </requireProperty> + <requireFilesExist> + <files> + <file>changelog.txt</file> + <file>LICENSE.txt</file> + <file>README.txt</file> + </files> + </requireFilesExist> + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + + </configuration> + <dependencies> + <dependency> + <groupId>org.codelutin</groupId> + <artifactId>lutin-enforcer-rules</artifactId> + <version>${lutin-enforcer-rules.version}</version> + </dependency> + </dependencies> + </plugin> + + <!-- always compute source jar --> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + </execution> + </executions> + </plugin> + + <!-- always compute javadoc jar --> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + </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>compile</defaultGoal> + <plugins> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.0-beta-1</version> + <executions> + <execution> + <id>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> + <version>1.1.1</version> + <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> + + <!-- profile to fix site url only for the pom --> + <!-- big hack : test the existance of a rst file to know if we are really in the plugin ? --> + <profile> + <id>internalProfile</id> + <activation> + <file> + <exists>src/site/rst/MavenProjectBestPractices.rst</exists> + </file> + <activeByDefault>false</activeByDefault> + </activation> + <distributionManagement> + <site> + <id>labs</id> + <url>scpexe://${labs.host}/home/groups/${labs.project}/htdocs/${project.artifactId}</url> + </site> + </distributionManagement> + <properties> + <site.home.url>http://${labs.project}.${labs.host}/${project.artifactId}</site.home.url> + </properties> + + <build> + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <configuration> + <locales>fr</locales> + <siteDirectory>src/site</siteDirectory> + </configuration> + <dependencies> + <dependency> + <groupId>org.codelutin</groupId> + <artifactId>doxia-module-jrst</artifactId> + <version>1.0.0</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </pluginManagement> + </build> + + + </profile> + </profiles> + +</project>
participants (1)
-
tchemit@users.labs.libre-entreprise.org