Author: tchemit Date: 2008-07-08 14:17:38 +0000 (Tue, 08 Jul 2008) New Revision: 817 Added: trunk/comandline/ trunk/comandline/core/ trunk/comandline/core/pom.xml trunk/comandline/core/src/ trunk/comandline/core/src/main/ trunk/comandline/core/src/site/ trunk/comandline/core/src/test/ trunk/comandline/maven/ trunk/comandline/maven/pom.xml trunk/comandline/maven/src/ trunk/comandline/maven/src/main/ trunk/comandline/maven/src/test/ trunk/comandline/pom.xml trunk/comandline/ui/ trunk/comandline/ui/pom.xml trunk/comandline/ui/src/ trunk/comandline/ui/src/main/ trunk/comandline/ui/src/site/ trunk/comandline/ui/src/test/ Log: creation module lutinutil : commandline (anciennement lutincommandline) avec des sous modules maven :) Added: trunk/comandline/core/pom.xml =================================================================== --- trunk/comandline/core/pom.xml (rev 0) +++ trunk/comandline/core/pom.xml 2008-07-08 14:17:38 UTC (rev 817) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.codelutin.option</groupId> + <artifactId>lutincommandline</artifactId> + <version>0.5</version> + </parent> + + <artifactId>core</artifactId> + <name>core</name> + + <packaging>jar</packaging> + <version>0.5</version> + <description>lutincommandline core library</description> + + <build> + <plugins> + + </plugins> + </build> + + <dependencies> + + </dependencies> +</project> Added: trunk/comandline/maven/pom.xml =================================================================== --- trunk/comandline/maven/pom.xml (rev 0) +++ trunk/comandline/maven/pom.xml 2008-07-08 14:17:38 UTC (rev 817) @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>org.codelutin.option</groupId> + <artifactId>lutincommandline</artifactId> + <version>0.5</version> + </parent> + + <artifactId>maven-commandline-plugin</artifactId> + <name>maven-plugin</name> + + <dependencies> + <dependency> + <groupId>org.codelutin.option</groupId> + <artifactId>core</artifactId> + <scope>compile</scope> + </dependency> + + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <scope>compile</scope> + </dependency> + + <!-- maven plugin project dependencies --> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <scope>compile</scope> + </dependency> + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <version>0.5</version> + + <description> + Plugin maven 2 pour la generation du parser d'options, des + configurations et du context d'application en se basant sur + la librairie org.codelutin.option:lutincommandline. + </description> + + <inceptionYear>2008</inceptionYear> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>maven-plugin</packaging> + <build> + <plugins> + <!--plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + </plugin--> + </plugins> + </build> + + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <!-- the plugin is a module in a labs project (buix), so we have to override + this property (see in the parent pom for more explanation) + --> + <scm> + <url>${maven.scm.url}</url> + </scm> + +</project> Added: trunk/comandline/pom.xml =================================================================== --- trunk/comandline/pom.xml (rev 0) +++ trunk/comandline/pom.xml 2008-07-08 14:17:38 UTC (rev 817) @@ -0,0 +1,288 @@ +<?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"> + + <modelVersion>4.0.0</modelVersion> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>lutinpom</groupId> + <artifactId>lutinproject</artifactId> + <version>2.3</version> + </parent> + + <groupId>org.codelutin.option</groupId> + <artifactId>lutincommandline</artifactId> + + <modules> + <module>core</module> + <module>ui</module> + <module>maven</module> + </modules> + + <dependencies> + <dependency> + <groupId>lutinlib</groupId> + <artifactId>lutinutil</artifactId> + </dependency> + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + <name>pom</name> + <version>0.5</version> + <description>lutincommandline library main pom</description> + <inceptionYear>2008</inceptionYear> + + <!-- Developpers, contributors... --> + <developers> + <developer> + <name>Tony Chemit</name> + <email>chemit@codelutin.com</email> + <organization>Code Lutin</organization> + <timezone>+2</timezone> + <roles> + <role>Developer</role> + </roles> + </developer> + </developers> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>pom</packaging> + + <build> + <plugins> + <!-- i18n --> + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-i18n-plugin</artifactId> + <configuration> + <bundles> + <param>fr_FR</param> + <param>en_GB</param> + </bundles> + <src>${maven.src.dir}/main/resources/i18n</src> + <defaultBasedir>${maven.src.dir}/main/java</defaultBasedir> + <keysModifier>false</keysModifier> + <keepBackup>false</keepBackup> + </configuration> + </plugin> + <!-- source--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <phase>install</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- javadoc --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <phase>deploy</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- jrst --> + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-jrst-plugin</artifactId> + <executions> + <execution> + <id>jrst</id> + <phase>test</phase> + <!-- test works better than pre:site --> + <goals> + <goal>jrst</goal> + </goals> + </execution> + </executions> + <configuration> + <directoryIn>${maven.src.dir}/site</directoryIn> + <directoryOut>${basedir}/target/generated-site/xdoc</directoryOut> + <verbose>${maven.verbose}</verbose> + </configuration> + </plugin> + <!-- site --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <configuration> + <outputEncoding>${maven.compile.encoding}</outputEncoding> + <locales>fr</locales> + <siteDirectory>src/site</siteDirectory> + <generateReports>true</generateReports> + <xdocDirectory>${basedir}/target/generated-site/xdoc/fr/rst</xdocDirectory> + </configuration> + </plugin> + </plugins> + </build> + + + <properties> + + <!-- id du projet du labs --> + <labs.id>12</labs.id> + + <labs.project>lutinutil</labs.project> + + <!-- par defaut, mode non verbeux --> + <!--maven.verbose>false</maven.verbose--> + <!-- compile with ? --> + <maven.compile.source>1.6</maven.compile.source> + <maven.compile.target>1.6</maven.compile.target> + <maven.compile.encoding>ISO-8859-15</maven.compile.encoding> + + <!-- Lists URL --> + <labs.lists> + http://lists.labs.libre-entreprise.org/mailman/listinfo/lutinutil + </labs.lists> + + <!-- maven will suffix with /${pom.artifactId} --> + <maven.scm.developerConnection>scm:svn:svn+ssh://tchemit@${labs.host}/svnroot/lutinutil/trunk + </maven.scm.developerConnection> + + <!-- maven will suffix with /${pom.artifactId} --> + <maven.scm.connection>scm:svn:svn:anonymous@${labs.host}/svnroot/lutinutil/trunk</maven.scm.connection> + + </properties> + + <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 ne les execute pas) --> + <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>false</maven.test.skip> + <maven.reports.generate>true</maven.reports.generate> + </properties> + </profile> + </profiles> + + + <dependencyManagement> + <dependencies> + + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.1</version> + <scope>compile</scope> + </dependency> + + <dependency> + <groupId>lutinlib</groupId> + <artifactId>lutinutil</artifactId> + <version>0.29</version> + </dependency> + + <dependency> + <groupId>lutinlib</groupId> + <artifactId>jaxx</artifactId> + <version>1.0.5</version> + </dependency> + + <dependency> + <groupId>org.codelutin.option</groupId> + <artifactId>core</artifactId> + <version>0.5</version> + </dependency> + + <dependency> + <groupId>org.codelutin.option</groupId> + <artifactId>ui</artifactId> + <version>0.5</version> + </dependency> + + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>2.0.4</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>2.0.4</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <version>2.0.4</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <version>1.0.5</version> + </dependency> + <!-- Plugins --> + <dependency> + <groupId>lutinplugin</groupId> + <artifactId>maven-i18n-plugin</artifactId> + <version>0.2-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>lutinplugin</groupId> + <artifactId>maven-jrst-plugin</artifactId> + <version>0.8</version> + </dependency> + + <dependency> + <groupId>lutinplugin</groupId> + <artifactId>maven-jaxx-plugin</artifactId> + <version>0.4</version> + </dependency> + </dependencies> + </dependencyManagement> + + <!-- the project is a module in a labs project (lutinutil), so we have to override + this property (see in the parent pom for more explanation) + --> + <scm> + <developerConnection>${maven.scm.developerConnection}</developerConnection> + <!--url>${maven.scm.url}</url--> + </scm> + +</project> Added: trunk/comandline/ui/pom.xml =================================================================== --- trunk/comandline/ui/pom.xml (rev 0) +++ trunk/comandline/ui/pom.xml 2008-07-08 14:17:38 UTC (rev 817) @@ -0,0 +1,114 @@ +<?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"> + + <modelVersion>4.0.0</modelVersion> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>org.codelutin.option</groupId> + <artifactId>lutincommandline</artifactId> + <version>0.5</version> + </parent> + + <groupId>org.codelutin.option.ui</groupId> + <artifactId>lutincommande-ui</artifactId> + + <dependencies> + + + <dependency> + <groupId>lutinlib</groupId> + <artifactId>jaxx</artifactId> + <scope>compile</scope> + </dependency> + + <dependency> + <groupId>org.codelutin.option</groupId> + <artifactId>core</artifactId> + <scope>compile</scope> + </dependency> + </dependencies> + + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + <name>ui</name> + <version>0.5</version> + <description>lutin commandline UI librairy</description> + <inceptionYear>2008</inceptionYear> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>jar</packaging> + + <build> + + <plugins> + <!-- jaxx --> + <plugin> + + <groupId>lutinplugin</groupId> + <artifactId>maven-jaxx-plugin</artifactId> + <configuration> + <out>${maven.src.dir}/java</out> + </configuration> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + + </execution> + </executions> + </plugin> + + <!-- ant --> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>clean</id> + <phase>clean</phase> + <configuration> + <tasks> + <delete includeemptydirs="true"> + <fileset dir="${maven.src.dir}/main/java" includes="**/*"/> + </delete> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>generate-sources</id> + <phase>generate-sources</phase> + <configuration> + <tasks> + <copy todir="${maven.src.dir}/main/java" verbose="${maven.verbose}" overwrite="true"> + <fileset dir="${maven.src.dir}/main/uimodel"> + <include name="**/*.java"/> + </fileset> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + + </plugins> + </build> + +</project>