[Suiviobsmer-commits] r101 - trunk
Author: tchemit Date: 2009-12-07 16:19:56 +0000 (Mon, 07 Dec 2009) New Revision: 101 Modified: trunk/pom.xml Log: add webstart config in pom + little improve of pom Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-12-07 16:06:52 UTC (rev 100) +++ trunk/pom.xml 2009-12-07 16:19:56 UTC (rev 101) @@ -232,6 +232,7 @@ <nuitonutils.version>1.1.1</nuitonutils.version> <topia.version>2.3.0-beta-SNAPSHOT</topia.version> <license.version>2.0.0</license.version> + <helper.version>1.1.0</helper.version> <eugene.version>2.0.0-beta-SNAPSHOT</eugene.version> <tapestry.version>5.1.0.5</tapestry.version> @@ -338,14 +339,14 @@ <artifactId>maven-source-plugin</artifactId> <version>2.1.1</version> <inherited>true</inherited> - <executions> + <!--executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> - </executions> + </executions--> </plugin> <!-- plugin javadoc --> @@ -359,7 +360,7 @@ <quiet>true</quiet> <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> </configuration> - <executions> + <!--executions> <execution> <id>attach-javadocs</id> <goals> @@ -368,11 +369,9 @@ <configuration> <attach>true</attach> <quiet>true</quiet> - <!-- uniquement a partir de javadoc 2.5 --> - <!--skip>${maven.javadoc.skip}</skip--> </configuration> </execution> - </executions> + </executions--> </plugin> @@ -411,6 +410,57 @@ <version>1.3</version> </plugin> + <plugin> + <groupId>org.nuiton.thirdparty</groupId> + <artifactId>webstart-maven-plugin</artifactId> + <version>1.0-alpha-2-cl_20091001</version> + <configuration> + + <libPath>lib</libPath> + <makeArchive>false</makeArchive> + <verbose>false</verbose> + + <jnlp> + <mainClass>${maven.jar.main.class}</mainClass> + <allPermissions>true</allPermissions> + <offlineAllowed>true</offlineAllowed> + </jnlp> + + <!-- Add some extensions for the already signed libs --> + <!--jnlpExtensions> + <jnlpExtension> + <name>sun</name> + <title>Sun MicroSystems</title> + <vendor>Sun MicroSystems, Inc.</vendor> + <includes> + <include>javax.help:javahelp</include> + </includes> + </jnlpExtension> + <jnlpExtension> + <name>jxlayer</name> + <title>Swing labs JXLayer </title> + <vendor>Swing Labs</vendor> + <includes> + <include>org.swinglabs:jxlayer</include> + </includes> + </jnlpExtension> + </jnlpExtensions--> + + <sign> + <keystore>${keystorepath}</keystore> + <storepass>${keystorepass}</storepass> + <alias>${keyalias}</alias> + <keypass>${keypass}</keypass> + <verify>true</verify> + <keystoreConfig> + <delete>false</delete> + <gen>false</gen> + </keystoreConfig> + </sign> + + </configuration> + </plugin> + </plugins> </pluginManagement> @@ -628,6 +678,9 @@ <executions> <execution> <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> </execution> </executions> </plugin> @@ -638,11 +691,14 @@ <executions> <execution> <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> </execution> </executions> </plugin> - <!-- always add license and third-party files to classpath --> + <!-- add license and third-party files to build --> <plugin> <groupId>org.nuiton</groupId> <artifactId>maven-license-plugin</artifactId> @@ -724,5 +780,110 @@ </properties> </profile> + <!-- just add to build the webstart --> + <profile> + <id>webstart-profile</id> + <activation> + <property> + <name>doWebstart</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>get-keystore</id> + <goals> + <goal>share-server-secret</goal> + </goals> + <phase>package</phase> + <configuration> + <serverId>codelutin-keystore</serverId> + <privateKeyOut>keystorepath</privateKeyOut> + <passwordOut>keystorepass</passwordOut> + <usernameOut>keyalias</usernameOut> + <passphraseOut>keypass</passphraseOut> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.nuiton.thirdparty</groupId> + <artifactId>webstart-maven-plugin</artifactId> + <executions> + <execution> + <id>generate-jnlp</id> + <phase>package</phase> + <goals> + <goal>jnlp-inline</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> + </profile> + + <!-- just add to buil the local webstart (codebase will be in target/jnlp) --> + <profile> + <id>local-webstart-profile</id> + <activation> + <property> + <name>doLocalWebstart</name> + <value>true</value> + </property> + </activation> + <properties> + <jnlp.codebase>file://${project.build.directory}/jnlp</jnlp.codebase> + </properties> + <build> + <plugins> + + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>get-keystore</id> + <goals> + <goal>share-server-secret</goal> + </goals> + <phase>package</phase> + <configuration> + <serverId>codelutin-keystore</serverId> + <privateKeyOut>keystorepath</privateKeyOut> + <passwordOut>keystorepass</passwordOut> + <usernameOut>keyalias</usernameOut> + <passphraseOut>keypass</passphraseOut> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.nuiton.thirdparty</groupId> + <artifactId>webstart-maven-plugin</artifactId> + <executions> + <execution> + <id>generate-jnlp-local</id> + <phase>package</phase> + <goals> + <goal>jnlp-inline</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> + </profile> + </profiles> </project>
participants (1)
-
tchemit@users.labs.libre-entreprise.org