I am trying to generate a webstart distribution for my UI using
org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp

I created my plugin configuration based upon examples provided. I am
currently getting an error suggesting that the <jnlp> element is missing.
But its not missing. What could be wrong?

[DEBUG] webstart-jarsigner-api: resolved to version
1.0-alpha-2-20070823.204122-3 from repository Maven Snapshots
[DEBUG] pack200-jdk15: resolved to version 1.0-alpha-2-20070823.204122-7
from repository Maven Snapshots
[DEBUG] keytool-maven-plugin: resolved to version
1.0-beta-2-20071206.230813-2 from repository Maven Snapshots
[DEBUG] Configuring mojo
'org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp' -->
[DEBUG]   (f) basedir = /home/najmi/xxx/trunk/myapp-gui-swing
[DEBUG]   (f) executedProject =
[EMAIL PROTECTED]
[DEBUG]   (f) gzip = false
[DEBUG]   (f) localRepository = [local] -> file:///home/najmi/.m2/repository
[DEBUG]   (s) outputJarVersions = false
[DEBUG]   (f) pack200 = false
[DEBUG]   (f) remoteRepositories = ....
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[DEBUG]   (f) templateDirectory =
/home/najmi/xxx/trunk/myapp-gui-swing/src/main/jnlp
[DEBUG]   (f) unsignAlreadySignedJars = false
[DEBUG]   (f) verbose = false
[DEBUG]   (f) verifyjar = true
[DEBUG]   (f) workDirectory =
/home/najmi/xxx/trunk/myapp-gui-swing/target/jnlp
[DEBUG] -- end configuration --
[INFO] [webstart:jnlp]
[DEBUG] a fact
[EMAIL PROTECTED]
[DEBUG] a resol
[EMAIL PROTECTED]
[DEBUG] basedir /home/najmi/xxx/trunk/myapp-gui-swing
[DEBUG] gzip false
[DEBUG] pack200 false
[DEBUG] project [EMAIL PROTECTED]
[DEBUG] zipArchiver [EMAIL PROTECTED]
[DEBUG] verifyjar true
[DEBUG] verbose false
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] <jnlp> configuration element missing.
[INFO]
------------------------------------------------------------------------
[DEBUG] 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:224)
       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:585)
       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.AbstractJnlpMojo.checkInput(AbstractJnlpMojo.java:602)
       at
org.codehaus.mojo.webstart.AbstractJnlpMojo.execute(AbstractJnlpMojo.java:190)
       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 plugin config:

                   <plugin>
                       <groupId>org.codehaus.mojo</groupId>
                       <artifactId>webstart-maven-plugin</artifactId>
                       <executions>
                           <execution>
                               <goals>
                                   <goal>jnlp</goal> <!-- use jnlp,
jnlp-inline or jnlp-single as appropriate -->
                               </goals>
                           </execution>
                       </executions>
                       <configuration>
                           <!-- JNLP generation -->
                           <jnlp>
                               <!-- default values -->

<!--resources>${project.basedir}/src/main/jnlp/resources</resources-->

<!--inputTemplateResourcePath>${project.basedir}</inputTemplateResourcePath-->

<!--inputTemplate>src/main/jnlp/template.vm</inputTemplate--> <!--
relative to inputTemplateResourcePath -->

<outputFile>${pom.artifactId}.jnlp</outputFile> <!-- defaults to
launch.jnlp -->

                               <!-- used to automatically identify the
jar containing the main class. -->
                               <!-- this is perhaps going to change -->

<mainClass>myapp.gui.swing.MainUIApp</mainClass>
                           </jnlp>

                           <!--outputDirectory></outputDirectory-->
<!-- not required?? -->

                           <!-- 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>

                           <!-- [optional] transitive dependencies
filter - if omitted, all transitive dependencies are included -->
                           <dependencies>
                               <!-- Note that only groupId and
artifactId must be specified here. because of a limitation of the
Include/ExcludesArtifactFilter -->
                               <includes>

<include>commons-logging:commons-logging</include>

<include>commons-cli:commons-cli</include>
                               </includes>
                               <!-- excludes>
                                   <exclude></exclude>
                               <excludes-->

</dependencies>

                           <!-- SIGNING -->
                           <!-- defining this will automatically sign
the jar and its dependencies, if necessary -->
                           <sign>
                               <keystore></keystore>
                               <keypass></keypass>  <!-- we need to
override passwords easily from the command line. ${keypass} -->
                               <storepass></storepass> <!--
${storepass} -->
                               <storetype></storetype>
                               <alias></alias>
                               <validity></validity>

                               <dnameCn></dnameCn>
                               <dnameOu></dnameOu>
                               <dnameO></dnameO>
                               <dnameL></dnameL>
                               <dnameSt></dnameSt>
                               <dnameC></dnameC>

                               <verify>true</verify>

                               <!-- KEYSTORE MANGEMENT -->
                               <keystoreConfig>
                                   <delete>true</delete> <!-- delete
the keystore -->
                                   <gen>true</gen>       <!-- optional
shortcut to generate the store. -->
                               </keystoreConfig>
                           </sign>

                           <!-- BUILDING PROCESS -->
                           <!--usejnlpservlet>true</usejnlpservlet-->
<!-- not yet supported -->

                           <!-- should we have some more configurations
here? E.g. compression level (aka packing effort) -->
                           <!-- not yet implemented -->
                           <pack200>true</pack200>
                           <gzip>true</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>

                           <!-- misc -->
                           <!-- if there are multiple apps, do we need
to mark one as default? (app/ redirects to app/default.jnlp in jnlp
servlet ??)-->
                           <!-- -->

                           <!--install>false</install--> <!-- not yet
supported -->
                           <verbose>true</verbose>

                       </configuration>
                   </plugin>

TIA for your help.

- -
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to