[Lutinbuilder-commits] r355 - lutinproject/trunk
Author: tchemit Date: 2009-02-18 07:51:51 +0000 (Wed, 18 Feb 2009) New Revision: 355 Modified: lutinproject/trunk/pom.xml Log: ajout du profile run pour lancer une application + zeroConf pour le plugin copy-dependencies Modified: lutinproject/trunk/pom.xml =================================================================== --- lutinproject/trunk/pom.xml 2009-02-17 18:54:50 UTC (rev 354) +++ lutinproject/trunk/pom.xml 2009-02-18 07:51:51 UTC (rev 355) @@ -388,11 +388,6 @@ <!-- plugin dependency --> <plugin> <artifactId>maven-dependency-plugin</artifactId> - <configuration> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>false</overWriteSnapshots> - <overWriteIfNewer>true</overWriteIfNewer> - </configuration> <executions> <execution> <id>copy-dependencies</id> @@ -400,6 +395,12 @@ <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> @@ -881,6 +882,70 @@ </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-alpha-4</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>
participants (1)
-
tchemit@users.labs.libre-entreprise.org