Hi,
At the moment my project uses maven's webstart plugin version alpha1 for
building a jnlp. That is working.
Now i want to migrate to version alpha2, but somehow this is not working.
I'm getting the following error while using goal webstart:jnlp
INFO] [webstart:jnlp]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] <jnlp> configuration element missing.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: <jnlp> configuration
element missing.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: <jnlp>
configuration element missing.
at org.codehaus.mojo.webstart.JnlpMojo.checkInput(JnlpMojo.java:953)
at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:359)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
... 16 more
And here is my pom.
<project>
<parent>
<groupId>****</groupId>
<artifactId>****.*****</artifactId>
<version>2.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>****.****.*****</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>1.0</version>
<packaging>pom</packaging> <!-- pom when you project doesn't contain
sources, jar otherwise -->
<name>JNLP</name>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.webstart</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<goals>
<goal>jnlp</goal> <!-- use jnlp, jnlp-inline or jnlp-single
as appropriate -->
</goals>
</execution>
</executions>
<configuration>
<!-- The path where the libraries are stored within the jnlp
structure. not required. by default the libraries are within the working
directory -->
<libPath>lib</libPath>
<!-- JNLP generation -->
<jnlp>
<outputFile>designer.jnlp</outputFile> <!-- defaults to
launch.jnlp -->
<mainClass>org.netbeans.modules.apisupport.jnlplauncher.Main
</mainClass>
</jnlp>
<!-- SIGNING -->
<!-- defining this will automatically sign the jar and its
dependencies, if necessary -->
<sign>
<keystore>/home/roys/development/factotummedia/woonactueel/resources/webhomeKeystore</keystore>
<keypass></keypass>
<storepass>password</storepass> <!-- ${storepass} -->
<storetype></storetype>
<alias>****</alias>
<verify>false</verify>
<!-- KEYSTORE MANGEMENT -->
<!--<keystoreConfig>
<delete>false</delete>--> <!-- delete the keystore -->
<!--<gen>false</gen>--> <!-- optional shortcut to generate
the store. -->
<!--</keystoreConfig>-->
</sign>
<pack200>false</pack200>
<gzip>false</gzip> <!-- default force when pack200 false, true
when pack200 selected ?? -->
<!-- causes a version attribute to be output in each jar resource
element, optional, default is false -->
<outputJarVersions>true</outputJarVersions>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
....
</dependencies>
</project>
--------------------------------
Can anyone help me out with this issue?
Thanks in advance,
Roy