Author: tchemit Date: 2008-08-12 14:03:55 +0000 (Tue, 12 Aug 2008) New Revision: 115 Modified: trunk/lutinproject/changelog trunk/lutinproject/pom.xml Log: create org.codelutin:lutinproject:2.4 :) Modified: trunk/lutinproject/changelog =================================================================== --- trunk/lutinproject/changelog 2008-08-12 08:25:04 UTC (rev 114) +++ trunk/lutinproject/changelog 2008-08-12 14:03:55 UTC (rev 115) @@ -1,2 +1,7 @@ +ver-2-4 poussin (20080812) + * refactor pom to new directory layout compiliance with maven 2 + * use svn instead of CVS + * improve plugin configurations + ver-2-1 poussin (20060913) * add support for services directory in resources to put in jar Modified: trunk/lutinproject/pom.xml =================================================================== --- trunk/lutinproject/pom.xml 2008-08-12 08:25:04 UTC (rev 114) +++ trunk/lutinproject/pom.xml 2008-08-12 14:03:55 UTC (rev 115) @@ -1,57 +1,78 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> +<?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/maven-v4_0_0.xsd"> - <!--The version of maven's project object model--> <modelVersion>4.0.0</modelVersion> - <!--Identifier--> - <groupId>lutinlib</groupId> + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <!-- POM Relationships : Coordinates --> + <groupId>org.codelutin</groupId> <artifactId>lutinproject</artifactId> + <version>2.4</version> - <!--Version--> - <version>2.2</version> + <!-- POM Relationships : Inheritance --> - <!--Description--> - <packaging>pom</packaging> - <description> - Projet Maven de r�f�rence pour l'ensemble des autres projet Maven. - </description> + <!-- add this in your pom + <parent> + <groupId>org.codelutin</groupId> + <artifactId>lutinproject</artifactId> + <version>2.4</version> + </parent> + --> - <!--The project home page--> - <url>http://labs.libre-entreprise.org/projects/${pom.artifactId}</url> + <!-- add dependencyManagement + <dependencyManagement></dependencyManagement> + --> - <!--Tracking--> - <issueManagement> - <url>http://labs.libre-entreprise.org/tracker/</url> - </issueManagement> + <!-- POM Relationships : Inheritance : Dependencies --> - <!--Any mailing lists for the project--> - <mailingLists> - <mailingList> - <name>${pom.artifactId}-cvscomit</name> - <subscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-cvscommit</subscribe> - <unsubscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-cvscommit - </unsubscribe> - <archive>http://lists.labs.libre-entreprise.org/pipermail/${pom.artifactId}-cvscommit/</archive> - </mailingList> + <dependencies> - <mailingList> - <name>${pom.artifactId}-devel</name> - <subscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-devel</subscribe> - <unsubscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-devel</unsubscribe> - <archive>http://lists.labs.libre-entreprise.org/pipermail/${pom.artifactId}-devel/</archive> - </mailingList> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> - <mailingList> - <name>${pom.artifactId}-user</name> - <subscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-user</subscribe> - <unsubscribe>http://lists.labs.libre-entreprise.org/mailman/listinfo/${pom.artifactId}-user</unsubscribe> - <archive>http://lists.labs.libre-entreprise.org/pipermail/${pom.artifactId}-user/</archive> - </mailingList> - </mailingLists> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1.1</version> + <scope>compile</scope> + </dependency> - <!--who the developers are for the project--> + </dependencies> + + <!-- POM Relationships : Aggregation --> + + <!-- add modules + <modules></modules> + --> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>Codelutin project superpom</name> + + <description>Projet Maven de reference pour l'ensemble des autres projets Maven.</description> + + <url>http://${labs.host}/projects/${pom.artifactId}</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> @@ -60,30 +81,30 @@ <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> <role>Debian packager</role> </roles> </developer> <developer> <name>Arnaud Thimel</name> - <id>thimel</id> + <id>athimel</id> <email>thimel@codelutin.com</email> <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> </roles> </developer> <developer> <name>Julien Ruchaud</name> - <id>ruchaud</id> + <id>jruchaud</id> <email>ruchaud@codelutin.com</email> <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> </roles> </developer> @@ -94,7 +115,7 @@ <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> </roles> </developer> @@ -105,7 +126,7 @@ <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> </roles> </developer> @@ -116,78 +137,111 @@ <organization>CodeLutin</organization> <timezone>+2</timezone> <roles> - <role>D�veloppeur</role> + <role>Développeur</role> </roles> </developer> + + <developer> + <name>Sylvain Letellier</name> + <id>sletellier</id> + <email>lettelier@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> + </developers> - <!--Licence GPL--> - <licenses> - <license> - <name>GPL</name> - <url>http://www.gnu.org/licenses/gpl.txt</url> - <distribution>repo</distribution> - </license> - </licenses> + <organization> + <name>CodeLutin</name> + <url>http://www.codelutin.com/</url> + </organization> + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + <properties> - <!--Source base dir--> + <!-- override this property to define labs project's id (or his parent)--> + <!--labs.id>10</labs.id--> + + <!-- override this property if the current project is a module of a labs project : put here the real labs project name --> + <labs.project>${pom.artifactId}</labs.project> + + <!-- override this property to define scm url property --> + <!--maven.scm.url>https://${labs.host}/plugins/scmsvn/viewcvs.php/?root=${labs.project}</maven.scm.url--> + + <!-- override this property to define scm url property --> + <!--maven.scm.developerConnection>scm:svn:svn+ssh:${username}@${labs.host}/svnroot/${labs.project}/trunk</maven.scm.developerConnection--> + + <!-- override this property to define scm url property --> + <!--maven.scm.connection>scm:svn:svn:anonymous@${labs.host}/svnroot/${labs.project}/trunk</maven.scm.connection--> + + <!-- labs host --> + <labs.host>labs.libre-entreprise.org</labs.host> + + <!-- labs list host --> + <labs.list.host>list.labs.libre-entreprise.org</labs.list.host> + + <!-- labs builder host --> + <labs.builder.host>lutinbuilder.labs.libre-entreprise.org</labs.builder.host> + + <!-- by default, maven is quiet --> + <maven.verbose>false</maven.verbose> + + <!-- by default, skip test --> + <!--maven.test.skip>true</maven.test.skip--> + + <!-- 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 --> + <maven.compile.encoding>UTF-8</maven.compile.encoding> + + <!-- by default, use maven 2 source base dir --> <maven.src.dir>${basedir}/src</maven.src.dir> - <!--Test--> - <maven.test.skip>false</maven.test.skip> + <!-- where to generate source --> + <maven.gen.dir>${basedir}/target/generated-sources</maven.gen.dir> - <!--Compile with ?--> - <maven.compile.source>1.5</maven.compile.source> - <maven.compile.target>1.5</maven.compile.target> + <!-- where to generate site --> + <maven.site.gen.dir>${basedir}/target/generated-site</maven.site.gen.dir> - <!--Main class in JAR--> - <maven.jar.main.class>org.codelutin.util.Resource</maven.jar.main.class> - - <!--Verbose--> - <maven.verbose>true</maven.verbose> </properties> - <!--Source control management--> - <!--the version control repository and http url for on line access - the connection element has the form: - scm:<system>:<system specific connection string>--> - <scm> - <url>http://cvs.labs.libre-entreprise.org/cgi-bin/cvsweb.cgi/?cvsroot=${pom.artifactId}</url> - <connection>scm:cvs:pserver:anonymous@cvs.labs.libre-entreprise.org:/cvsroot/${pom.artifactId}:${pom.artifactId} - </connection> - <developerConnection> - scm:cvs:ext:${username}@cvs.labs.libre-entreprise.org:/cvsroot/${pom.artifactId}:${pom.artifactId} - </developerConnection> - </scm> + <packaging>pom</packaging> - <!--Details about the organization that 'owns' the project--> - <organization> - <name>CodeLutin</name> - <url>http://www.codelutin.com/</url> - </organization> - - <!--Build information for the project--> <build> - <!--Sources--> - <sourceDirectory>${maven.src.dir}/java</sourceDirectory> - <testSourceDirectory>${maven.src.dir}/test</testSourceDirectory> - <!--<nagEmailAddress>poussin+${pom.artifactId}@codelutin.org</nagEmailAddress>--> - <!--Ressources--> <resources> - <resource> + <!--resource> <directory>${maven.src.dir}/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.jdo</include> </includes> - </resource> + </resource--> <resource> - <directory>${maven.src.dir}/resources</directory> + <directory>${maven.src.dir}/main/resources</directory> <includes> <include>**/*</include> </includes> @@ -197,7 +251,7 @@ </resource> <resource> - <directory>${maven.src.dir}/uimodel</directory> + <directory>${maven.src.dir}/main/uimodel</directory> <includes> <include>**/*.xml</include> <include>**/*.xgl</include> @@ -206,87 +260,246 @@ </resource> <resource> - <directory>${maven.src.dir}/xsl</directory> + <directory>${maven.src.dir}/main/xsl</directory> <includes> <include>**/*.xsl</include> </includes> </resource> </resources> - <testResources> + <!--testResources> <testResource> <directory>${maven.src.dir}/test</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </testResource> - </testResources> + </testResources--> - <!--Configuration of plugins--> - <plugins> - <!--Test configuration--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <skip>${maven.test.skip}</skip> - <!--Exclude NaughtyTest.java--> - <!--<includes> - <include>**/*Test.java</include> - </includes> - <excludes> - <exclude>**/NaughtyTest.java</exclude> - </excludes>--> - </configuration> - </plugin> + <pluginManagement> - <!--Compile with ?--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${maven.compile.source}</source> - <target>${maven.compile.target}</target> - </configuration> - </plugin> + <plugins> - <!--WebApp in JAR --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-war-plugin</artifactId> - <version>2.0.1</version> - <!-- force version because maven seem to can't find automaticaly --> - <configuration> - <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory> - </configuration> - </plugin> + <!-- jaxx --> + <!--plugin> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>maven-jaxx-plugin</artifactId> + <version>0.3</version> + <executions> + <execution> + <id>generate jaxx</id> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin--> - <!--Main class in WAR --> - <plugin> + <!-- resources --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <configuration> + <encoding>${maven.compile.encoding}</encoding> + </configuration> + </plugin> + + <!-- i18n --> + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-i18n-plugin</artifactId> + <version>0.4</version> + <configuration> + <bundles> + <param>fr_FR</param> + <param>en_GB</param> + </bundles> + <encoding>${maven.compile.encoding}</encoding> + <src>${maven.src.dir}/main/resources/i18n</src> + <defaultBasedir>${maven.src.dir}/main/java</defaultBasedir> + <keysModifier>false</keysModifier> + <keepBackup>false</keepBackup> + </configuration> + </plugin> + + <!-- compiler --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${maven.compile.source}</source> + <target>${maven.compile.target}</target> + <encoding>${maven.compile.encoding}</encoding> + </configuration> + </plugin> + + <!-- surefire --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>${maven.test.skip}</skip> + <!--Exclude NaughtyTest.java--> + <!--<includes> + <include>**/*Test.java</include> + </includes> + <excludes> + <exclude>**/NaughtyTest.java</exclude> + </excludes>--> + </configuration> + </plugin> + + <!-- dependency --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <configuration> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <overWriteIfNewer>true</overWriteIfNewer> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- war --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <version>2.0.1</version> + <configuration> + <warSourceDirectory>${maven.src.dir}/main/webapp</warSourceDirectory> + </configuration> + </plugin> + + <!-- jar --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <mainClass>${maven.jar.main.class}</mainClass> + </manifest> + <manifestEntries> + <url>${pom.url}</url> + </manifestEntries> + </archive> + </configuration> + </plugin> + + <!-- source --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- javadoc --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <docencoding>${maven.compile.encoding}</docencoding> + <encoding>${maven.compile.encoding}</encoding> + </configuration> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- jrst --> + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-jrst-plugin</artifactId> + <version>0.8</version> + <configuration> + <directoryIn>${maven.src.dir}/site</directoryIn> + <directoryOut>${maven.gen.site.dir}/xdoc</directoryOut> + <verbose>${maven.verbose}</verbose> + <defaultLocale>fr</defaultLocale> + </configuration> + <executions> + <execution> + <id>jrst</id> + <phase>test</phase> + <!--phase>pre-site</phase--> + <goals> + <goal>jrst</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- site --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>2.0-beta-7</version> + <!--version>2.0-beta-5-cl</version--> + <!-- user cl version that permit /site in another directory that /src --> + <configuration> + <siteDirectory>${maven.site.gen.dir}</siteDirectory> + <xdocDirectory>${maven.site.gen.dir}/xdoc/fr/rst</xdocDirectory> + <outputEncoding>${maven.compile.encoding}</outputEncoding> + <generateReports>${maven.reports.generate}</generateReports> + <locales>fr</locales> + </configuration> + </plugin> + + <!-- plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>2.4.2</version> + <executions> + <execution> + <id>helpmojo</id> + <goals> + <goal>helpmojo</goal> + </goals> + </execution> + <execution> + <id>report</id> + <phase>pre-site</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </pluginManagement> + + <plugins> + + <!--plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <configuration> - <archive> - <manifest> - <mainClass>${maven.jar.main.class}</mainClass> - </manifest> - <manifestEntries> - <url>${pom.url}</url> - </manifestEntries> - </archive> - </configuration> - </plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin--> - <!--Site --> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <version>2.0-beta-5-cl</version> - <!-- user cl version that permit /site in another directory that /src --> - <configuration> - <siteDirectory>target/site-build</siteDirectory> - <locales>fr</locales> - </configuration> + <artifactId>maven-source-plugin</artifactId> </plugin> <!--Tasks Ant--> @@ -294,7 +507,7 @@ <artifactId>maven-antrun-plugin</artifactId> <executions> <!--Copy ressources files in source directory--> - <execution> + <!--execution> <id>CopyRessourcesFiles</id> <phase>generate-sources</phase> <configuration> @@ -309,15 +522,15 @@ <goals> <goal>run</goal> </goals> - </execution> + </execution--> <!--Copy files for site--> <execution> <id>CopySiteFiles</id> <phase>pre-site</phase> <configuration> <tasks> - <copy todir="${basedir}/target/site-build" verbose="${maven.verbose}" overwrite="false"> - <fileset dir="${basedir}/site"/> + <copy todir="${maven.site.gen.dir}" verbose="${maven.verbose}" overwrite="false"> + <fileset dir="${maven.src.dir}/site"/> </copy> </tasks> </configuration> @@ -328,26 +541,6 @@ </executions> </plugin> - <!--Attaching jrst plugin to the Build Lifecycle--> - <plugin> - <groupId>lutinplugin</groupId> - <artifactId>maven-jrst-plugin</artifactId> - <version>0.7</version> - <executions> - <execution> - <id>jrst</id> - <phase>pre-site</phase> - <goals> - <goal>jrst</goal> - </goals> - </execution> - </executions> - <configuration> - <defaultLocale>fr</defaultLocale> - <verbose>${maven.verbose}</verbose> - </configuration> - </plugin> - <!--jpox--> <!--<plugin> <groupId>org.apache.maven.plugins</groupId> @@ -362,13 +555,14 @@ <reporting> <plugins> <!--Site report's plugin--> - <plugin> + <!-- can not allowed this! otherwise when defining a plugin it will not work... --> + <!--plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <configuration> <outputDirectory>target/site-build/xdoc</outputDirectory> </configuration> - </plugin> + </plugin--> <!--All site--> <plugin> <!--License--> @@ -422,6 +616,97 @@ </plugins> </reporting> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <!-- Build Environment : Environment Information --> + + <issueManagement> + <system>gforge</system> + <url>http://${labs.host}/tracker/?group_id=${labs.id}/</url> + </issueManagement> + + <!-- add ciManagement + <ciManagement></ciManagement> + --> + + <!--Any mailing lists for the project--> + <mailingLists> + <mailingList> + <name>${pom.artifactId}-commit</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-commit</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-commit</unsubscribe> + <archive>http://${labs.list.host}/pipermail/${pom.artifactId}-commit/</archive> + </mailingList> + + <mailingList> + <name>${pom.artifactId}-devel</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-devel</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-devel</unsubscribe> + <archive>http://${labs.list.host}/pipermail/${pom.artifactId}-devel/</archive> + </mailingList> + + <mailingList> + <name>${pom.artifactId}-user</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-user</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-user</unsubscribe> + <archive>http://${labs.list.host}/pipermail/${pom.artifactId}-user/</archive> + </mailingList> + + <mailingList> + <name>${pom.artifactId}-bugreport</name> + <subscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-bugreport</subscribe> + <unsubscribe>http://${labs.list.host}/mailman/listinfo/${pom.artifactId}-bugreport</unsubscribe> + <archive>http://${labs.list.host}/pipermail/${pom.artifactId}-bugreport/</archive> + </mailingList> + </mailingLists> + + <!--Source control management--> + <!--the version control repository and http url for on line access + the connection element has the form: + scm:<system>:<system specific connection string>--> + <!--scm> + <url>http://cvs.labs.libre-entreprise.org/cgi-bin/cvsweb.cgi/?cvsroot=${pom.artifactId}</url> + <connection>scm:cvs:pserver:anonymous@cvs.labs.libre-entreprise.org:/cvsroot/${pom.artifactId}:${pom.artifactId} + </connection> + <developerConnection> + scm:cvs:ext:${username}@cvs.labs.libre-entreprise.org:/cvsroot/${pom.artifactId}:${pom.artifactId} + </developerConnection> + </scm--> + + <scm> + <!-- BE WARE, if your project is 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 + --> + <connection>${maven.scm.connection}</connection> + <!-- BE WARE, if your project is 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 + --> + <developerConnection>${maven.scm.developerConnection}</developerConnection> + <!-- BE WARE, if your project is not a real labs project says a module + of a real labs's 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>${maven.scm.url}</url> + </scm> + + <!-- ************************************************************* --> + <!-- *** Maven Environment *************************************** --> + <!-- ************************************************************* --> + + <!-- prerequisites --> + <prerequisites> + <maven>2.0.8</maven> + </prerequisites> + + <!-- Maven Environment : Repositories --> + <!--Code Lutin Repository--> <repositories> <repository> @@ -431,33 +716,63 @@ </repository> </repositories> - <!--JUnit--> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <version>1.1</version> - <scope>compile</scope> - </dependency> - </dependencies> + <!-- add pluginRepositories + <pluginRepositories></pluginRepositories> + --> + <!--Distribution--> <distributionManagement> <repository> <id>labs</id> - <url>scp://labs.libre-entreprise.org/home/groups/lutinbuilder/htdocs/maven2</url> + <url>scp://${labs.host}/home/groups/lutinbuilder/htdocs/maven2</url> </repository> - <site> <id>labs</id> - <url>scp://labs.libre-entreprise.org/home/groups/${pom.artifactId}/htdocs/toto-tmp/</url> + <!-- 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>scp://${labs.host}/home/groups/${labs.project}/htdocs</url> </site> </distributionManagement> + <!-- Maven Environment : profiles --> + <profiles> + <profile> + <id>project</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <!-- test (par defaut, on ne les execute pas) --> + <maven.test.skip>true</maven.test.skip> + <maven.reports.generate>false</maven.reports.generate> + </properties> + </profile> + <profile> + <id>tests</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <!-- test (par defaut, on les execute) --> + <maven.test.skip>false</maven.test.skip> + <maven.reports.generate>false</maven.reports.generate> + </properties> + </profile> + <profile> + <id>site</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <!-- test (par defaut, on ne les execute pas) --> + <maven.test.skip>true</maven.test.skip> + <maven.reports.generate>true</maven.reports.generate> + </properties> + </profile> + </profiles> + </project>