Jim Kiley commented on Improvement MWEBSTART-213

In the latest 1.0-beta-4-SNAPSHOT of the webstart-maven-plugin, I believe a feature has been removed.

Issue: The "hrefValue" field of the JarResource class has been moved to the new ResolvedJarResoruce class. JarResource classes are instantiated by <jarResource> elements in the POM. The hrefValue element allows you to override the location of the JAR resource instead of taking the default artifact file name.

Example jarResource element
<jarResources>
   <jarResource>
      <groupId>com.mycompany</groupId>
      <artifactId>expensive-to-compile-jar</artifactId>
      <version>${project.version}</version>
      <outputJarVersion>false</outputJarVersion>
      <hrefValue>/path/to/build/target</hrefValue>  
   </jarResource>
</jarResources>

In 1.0-beta-4-SNAPSHOT (as of 10/31), if I use this block of XML in my POM, I will get the following error when generating the webstart package:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-4-SNAPSHOT:jnlp-download-servlet (default) on project my-project: Unable to parse configuration of mojo org.codehaus.mojo:webstart-maven-plugin:1.0-beta-4-SNAPSHOT:jnlp-download-servlet for parameter jarResource: Cannot find setter, adder nor field in org.codehaus.mojo.webstart.JarResource for 'hrefValue'

It's clear why this error occurs, the hrefValue is now gone from JarResource. We use this feature in order to build some rather large JAR files in parallel, sign them individually, and then deposit them on a development server in a specific path. The JNLP file is generated with those overridden paths so that the Java runtime on the client machine is able to locate and download them from the server. It allows us to avoid repackaging the whole webstart package when new code is checked in.

Is there a way to work around this to override the location for a JAR resource?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to