Maven, Webstart and Java 8 Headaches

I am trying to convert a project from compiling from Java 6 to Java 8. We are using the webstart-maven-plugin, for which there is currently a workaround ( http://mojo.10943.n7.nabble.com/jira-MWEBSTART-269- Java-8-support-td44357.html ) to compile with Java 8 by adding the following dependencies to the plugin definition.

... <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>webstart-maven-plugin</artifactId> <version>1.0-beta-6</version> <dependencies> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>webstart-pack200-impl</artifactId> <version>1.0-beta-6</version> </dependency> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>keytool-api-1.7</artifactId> <version>1.4</version> </dependency> </dependencies> ... </plugin> </plugins> </pluginManagement> </build> ... 

This led me to my initial problems.

Now I get the following error.

 [ERROR] Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp-inline (default) on project <redacted>: Unable to parse configuration of mojo org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp-inline for parameter pack200: Cannot find default setter in class org.codehaus.mojo.webstart.Pack200Config -> [Help 1] 

The Help link will go to the next page. https://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException

As far as I can tell, the webstart-pack200-impl dependency requires some configuration to determine which setter is being used. Any information on the setters I found on the Internet seems to be different from this. I cannot figure out if there is a way to set the configuration for the dependency.

Or am I considering this completely wrong?

Thank you very much in advance

+8
java maven mojo
source share
1 answer

the error indicates package200 that was configured as <pack200>false</pack200> in the old version of the webstart plugin configuration.

This can be solved by changing the pack200 configuration to this (in the <configuration> section of the plugin parameters)

 <pack200><enabled>false</enabled></pack200> 

For more details see the http://www.mojohaus.org/webstart/webstart-maven-plugin/upgrade.html section β€œImportant Changes from 1.0-beta-3”

+7
source share

All Articles