You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "louwj@netzero.net" <lo...@netzero.net> on 2006/03/31 00:29:32 UTC

Maven Webstart Plugin

I am new to Maven, and have it working relatively well for managing
dependencies, and simple builds. I am trying to get the Maven Webstart
plugin working for me, but am having several (probably simple) problems. 

Right now when I execute the " mvn webstart:jnlp goal " it is fails to
download the artifacts. 

It fails with the following message:

[ERROR] BUILD ERROR
[INFO] -----------------------------------------------------
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: mojo
Version: 7

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo:pom:7

from the specified remote repositories:
  central (http://snapshots.maven.codehaus.org/maven2)

I am using my own respository for artifacts, so I setup a pluginRepository
in my pom.xml as follows (hope it displays):

<pluginRepositories>
    <pluginRepository>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>http://snapshots.maven.codehaus.org/maven2</url>
      <!-- <url>http://maven.codehaus.org/maven2</url> -->
      <layout>default</layout>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <!-- <releases>
        <updatePolicy>never</updatePolicy>
      </releases> -->
    </pluginRepository>
  </pluginRepositories>

Any help would be much appreciated.

--
Jeff

--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3679895
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> In your <jnlp> section, do you have a <mainClass> defined?
>
> Line 629 in JnlpMojo is:
> if ( artifactContainsClass( artifact, jnlp.getMainClass() ) ) {

Oups. I will try to make this configuration error more visible to the user.

I created
  this http://jira.codehaus.org/browse/MOJO-356
to track the issue.

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
Tim,

Thanks. Whew!!! I do appreciate your tolerance as I deal with the learning
curve.

I may be back with a few questions about signing jars later :)

Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3792414
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Ouch.

You are using the velocity template that generates the jnlp file instead of a jnlp file 
template :-)

Your jnlp file template should be an ordinary jnlp file with the exception that you can 
use the three variables '$dependencies', '$mainClass' and '$outputFile' which the plugin 
then substitutes with the actual values.

So your example below will look like this:

-------------------------------
<xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for my app -->
   <jnlp spec="1.0+" codebase="http://updates.mysite.org/myapp" xhref="$outputFile">
   <information>
     <title>My App</title>
     <vendor>My Team</vendor>
     <homepage xhref="myapp.html"/>
     <description>My App</description>
     <icon xhref="logo.jpg">
     <offline-allowed/>
   </information>

   <security>
     <all-permissions/>
   </security>

   <resources>
     <j2se version"1.5+"/>
     $dependencies
   </resources>

   <application-desc main-class="$mainClass" />
</jnlp>
-------------------------------

I've never used the '$outputFile' because I'm using Sun's DownloadServlet but I think it 
goes in your xhref attribute.

-Tim

Jeff Louw schrieb:
> Tim, 
> 
> This may all simply be due to a lack of knowledge about how this should all
> work, in which case I would appreciate some explanation. 
> 
> Here is the template.vm I am using:
> 
> ## timestamp ??
> <?xml version="1.0" encoding="utf-8"?>
> <jnlp
> #if( $config.spec )
>     spec="${config.spec}"
> #end
> #if( $config.jnlp.version )
>     spec="${config.jnlp.version}"
> #end
> #if( $config.jnlp.href )
>     spec="${config.jnlp.href}"
> #end
> #if( $config.jnlp.codebase )
>     codebase="${config.jnlp.codebase}"
> #else
>     codebase="$$codebase"
> #end
>     href="$outputFile.name">
> ##
> ## JNLP/INFORMATION
> ##
> #foreach( $information in $config.jnlp.informations )
>   <information>
>     <title>${information.title}</title>
> #if( $information.vendor )
>     <vendor>${information.vendor}</vendor>
> #end
> #if( $information.homepage )
>     <homepage href="${information.homepage}"/>
> #end
> #foreach( $description in $information.descriptions )
>     <description #if( $description.kind
> )kind="${description.kind}"#end>${description.text}</description>
> #end
> #foreach( $icon in $information.icons )
> ##
> ## JNLP/INFORMATION/ICON
> ##
>     <icon
> #if( $icon.kind )
>       kind="${icon.kind}"
> #end
> #if( $icon.width )
>       width="${icon.width}"
> #end
> #if( $icon.height )
>       height="${icon.height}"
> #end
> #if( $icon.depth )
>       depth="${icon.depth}"
> #end
> #if( $icon.size )
>       size="${icon.size}"
> #end
> ## REQUIRED
>       href="images/${icon.fileName}"/>
> #end
> ##
> ## END JNLP/INFORMATION/ICON
> ##
> ## ------------------------------
> ##
> #if( $config.jnlp.offlineAllowed )
>     <offline-allowed/>
> #end
> ##NEED ASSOCIATIONS (FIXME)
> #if( $information.association)
>     <association mime-type="${information.association.mimetype}"
> extensions="${information.association.extensions}"/>
> #end
> ##
> ##
> ## JNLP/INFORMATION/SHORTCUT FIXME
> ##
> #if( $information.shortcut )
>     <shortcut online="${information.shortcut.online}">
> #if($information.shortcut.desktop)
>       <desktop/>
> #end
> #if($information.shortcut.menu)
>       <menu #if( $information.shortcut.submenu
> )submenu="${information.shortcut.submenu}"#end/>
> #end
>     </shortcut>
> #end
> ##
> ## END JNLP/INFORMATION/SHORTCUT
> ##
>   </information>
> #end
> ##
> ## END JNLP/INFORMATION
> ##
> ## ------------------------------
> ##
> ## JNLP/SECURITY
> ##
> #if( $config.jnlp.isAllPermissions() )
>   <security>
>      <all-permissions/>
>   </security>
> #end
> #if( $config.jnlp.isJ2EEClientPermissions() )
>   <security>
>      <j2ee-application-client-permissions/>
>   </security>
> #end
> ##
> ## END JNLP/SECURITY
> ##
> ## ------------------------------
> ##
> ## JNLP/RESOURCES
> ##
>   <resources>
> ##
> ## JNLP/RESOURCES/J2SE
> ##
> #foreach($j2se in $config.jnlp.allResources.j2ses )
>     <j2se version="${j2se.version}"
> #if($j2se.href)
>      href="$j2se.jhref"
> #elseif($j2se.autodownload)
>      href="http://java.sun.com/products/autodl/j2se"
> #end
> #if($j2se.javaVmArgs)
>      java-vm-args="$j2se.javaVmArgs"
> #end
> #if($j2se.initialHeapSize)
>      initial-heap-size="$j2se.initialHeapSize"
> #end
> #if($j2se.maxHeapSize)
>      max-heap-size="$j2se.maxHeapSize"
> #end
>      />
> #end
> ##
> ## END JNLP/RESOURCES/J2SE
> ##
> ## ------------------------------
> ##
> ## JNLP/RESOURCES/PROPERTIES FIXME
> ##
> #foreach($property in $config.jnlp.allresources.properties )
>     <property name="${property.name}" value="${property.value}"/>
> #end
> ##
> ## END JNLP/RESOURCES/PROPERTIES
> ##
> ## ------------------------------
> ##
> ## JNLP/RESOURCES/JAR
> ##
> #foreach($artifact in $config.packagedJnlpArtifacts)
> #if($config.isArtifactWithMainClass($artifact))
>     <jar href="${artifact.file.name}" main="true"/>
> #else
>     <jar href="${artifact.file.name}"/>
> #end
> #end
> ##
>   </resources>
> ##
> ## END JNLP/RESOURCES/JAR
> ##
> ## ------------------------------
> ## FIXME
> #foreach($jar in $config.expandedNativeLibs)
>   <resources #if($jar.os) os="${jar.os}" #end>
>     <nativelib href="${jar}"/>
>   </resources>
> #end
> ##
> ## ------------------------------
> ## JNLP/APPLICATION-DESC
> #if ( $config.jnlp.arguments )
>   <application-desc main-class="${config.jnlp.mainClass}">
> #foreach($arg in $config.jnlp.arguments)
>     <argument>$arg</argument>
> #end
>   </application-desc>
> #else
>   <application-desc main-class="${config.jnlp.mainClass}"/>
> #end
> ## END JNLP/APPLICATION-DESC
> ##
> #if($config.installermainclass)
>   <installer-desc main-class="${config.installermainclass}"/>
> #end
> </jnlp>
> 
> Here is the resulting jnlp file:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <jnlp
>     codebase="$$codebase"
>     href="$outputFile.name">
>   <resources>
>   </resources>
>   <application-desc main-class="${config.jnlp.mainClass}"/>
> </jnlp>
> 
> This is the sort of thing I would expect to see in a working jnlp file:
> 
> <xml version="1.0" encoding="utf-8"?>
> <!-- JNLP File for my app -->
> <jnlp spec="1.0+" codebase="http://updates.mysite.org/myapp" 
> xhref="msss.jnlp">
> <information>
> <title>My App</title>
> <vendor>My Team</vendor>
> <homepage xhref="myapp.html"/>
> <description>My App</description>
> <icon xhref="logo.jpg">
> <offline-allowed/>
> </information>
> <security>
> <all-permissions/>
> </security>
> <resources>
> <j2se version"1.5+"/>
> <jar xhref="myapp.jar"/>
> <jar xhref="spring.jar"/>
> <jar xhref="spring-rich.jar"/>
> <jar xhref="hibernate.jar"/>
> <jar xhref="jsuite.jar"/>
> <jar xhref="log4j.jar"/>
> <jar xhref="swingx.jar"/>
> <jar xhref="activation.jar"/>
> <jar xhref="mail.jar"/>
> </resources>
> <application-desc main-class="org.mypackage.pack.MainClass">
> </application-desc>
> </jnlp>
> --
> View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3788502
> Sent from the Maven - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
Tim, 

This may all simply be due to a lack of knowledge about how this should all
work, in which case I would appreciate some explanation. 

Here is the template.vm I am using:

## timestamp ??
<?xml version="1.0" encoding="utf-8"?>
<jnlp
#if( $config.spec )
    spec="${config.spec}"
#end
#if( $config.jnlp.version )
    spec="${config.jnlp.version}"
#end
#if( $config.jnlp.href )
    spec="${config.jnlp.href}"
#end
#if( $config.jnlp.codebase )
    codebase="${config.jnlp.codebase}"
#else
    codebase="$$codebase"
#end
    href="$outputFile.name">
##
## JNLP/INFORMATION
##
#foreach( $information in $config.jnlp.informations )
  <information>
    <title>${information.title}</title>
#if( $information.vendor )
    <vendor>${information.vendor}</vendor>
#end
#if( $information.homepage )
    <homepage href="${information.homepage}"/>
#end
#foreach( $description in $information.descriptions )
    <description #if( $description.kind
)kind="${description.kind}"#end>${description.text}</description>
#end
#foreach( $icon in $information.icons )
##
## JNLP/INFORMATION/ICON
##
    <icon
#if( $icon.kind )
      kind="${icon.kind}"
#end
#if( $icon.width )
      width="${icon.width}"
#end
#if( $icon.height )
      height="${icon.height}"
#end
#if( $icon.depth )
      depth="${icon.depth}"
#end
#if( $icon.size )
      size="${icon.size}"
#end
## REQUIRED
      href="images/${icon.fileName}"/>
#end
##
## END JNLP/INFORMATION/ICON
##
## ------------------------------
##
#if( $config.jnlp.offlineAllowed )
    <offline-allowed/>
#end
##NEED ASSOCIATIONS (FIXME)
#if( $information.association)
    <association mime-type="${information.association.mimetype}"
extensions="${information.association.extensions}"/>
#end
##
##
## JNLP/INFORMATION/SHORTCUT FIXME
##
#if( $information.shortcut )
    <shortcut online="${information.shortcut.online}">
#if($information.shortcut.desktop)
      <desktop/>
#end
#if($information.shortcut.menu)
      <menu #if( $information.shortcut.submenu
)submenu="${information.shortcut.submenu}"#end/>
#end
    </shortcut>
#end
##
## END JNLP/INFORMATION/SHORTCUT
##
  </information>
#end
##
## END JNLP/INFORMATION
##
## ------------------------------
##
## JNLP/SECURITY
##
#if( $config.jnlp.isAllPermissions() )
  <security>
     <all-permissions/>
  </security>
#end
#if( $config.jnlp.isJ2EEClientPermissions() )
  <security>
     <j2ee-application-client-permissions/>
  </security>
#end
##
## END JNLP/SECURITY
##
## ------------------------------
##
## JNLP/RESOURCES
##
  <resources>
##
## JNLP/RESOURCES/J2SE
##
#foreach($j2se in $config.jnlp.allResources.j2ses )
    <j2se version="${j2se.version}"
#if($j2se.href)
     href="$j2se.jhref"
#elseif($j2se.autodownload)
     href="http://java.sun.com/products/autodl/j2se"
#end
#if($j2se.javaVmArgs)
     java-vm-args="$j2se.javaVmArgs"
#end
#if($j2se.initialHeapSize)
     initial-heap-size="$j2se.initialHeapSize"
#end
#if($j2se.maxHeapSize)
     max-heap-size="$j2se.maxHeapSize"
#end
     />
#end
##
## END JNLP/RESOURCES/J2SE
##
## ------------------------------
##
## JNLP/RESOURCES/PROPERTIES FIXME
##
#foreach($property in $config.jnlp.allresources.properties )
    <property name="${property.name}" value="${property.value}"/>
#end
##
## END JNLP/RESOURCES/PROPERTIES
##
## ------------------------------
##
## JNLP/RESOURCES/JAR
##
#foreach($artifact in $config.packagedJnlpArtifacts)
#if($config.isArtifactWithMainClass($artifact))
    <jar href="${artifact.file.name}" main="true"/>
#else
    <jar href="${artifact.file.name}"/>
#end
#end
##
  </resources>
##
## END JNLP/RESOURCES/JAR
##
## ------------------------------
## FIXME
#foreach($jar in $config.expandedNativeLibs)
  <resources #if($jar.os) os="${jar.os}" #end>
    <nativelib href="${jar}"/>
  </resources>
#end
##
## ------------------------------
## JNLP/APPLICATION-DESC
#if ( $config.jnlp.arguments )
  <application-desc main-class="${config.jnlp.mainClass}">
#foreach($arg in $config.jnlp.arguments)
    <argument>$arg</argument>
#end
  </application-desc>
#else
  <application-desc main-class="${config.jnlp.mainClass}"/>
#end
## END JNLP/APPLICATION-DESC
##
#if($config.installermainclass)
  <installer-desc main-class="${config.installermainclass}"/>
#end
</jnlp>

Here is the resulting jnlp file:

<?xml version="1.0" encoding="utf-8"?>
<jnlp
    codebase="$$codebase"
    href="$outputFile.name">
  <resources>
  </resources>
  <application-desc main-class="${config.jnlp.mainClass}"/>
</jnlp>

This is the sort of thing I would expect to see in a working jnlp file:

<xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for my app -->
<jnlp spec="1.0+" codebase="http://updates.mysite.org/myapp" 
xhref="msss.jnlp">
<information>
<title>My App</title>
<vendor>My Team</vendor>
<homepage xhref="myapp.html"/>
<description>My App</description>
<icon xhref="logo.jpg">
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version"1.5+"/>
<jar xhref="myapp.jar"/>
<jar xhref="spring.jar"/>
<jar xhref="spring-rich.jar"/>
<jar xhref="hibernate.jar"/>
<jar xhref="jsuite.jar"/>
<jar xhref="log4j.jar"/>
<jar xhref="swingx.jar"/>
<jar xhref="activation.jar"/>
<jar xhref="mail.jar"/>
</resources>
<application-desc main-class="org.mypackage.pack.MainClass">
</application-desc>
</jnlp>
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3788502
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Jeff Louw schrieb:
> It is working ... but:
> 
> The generated launch.jnlp file does not appear to be correct. I think the
> problem is the template.vm overrides the information that has already been
> provided in the pom.xml ? 
> 
> How can I setup the template.vm so that a correct launch.jnlp is created ?
> Any samples ? 
> --
> View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3773362
> Sent from the Maven - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

Jeff,

can you be a little bit more specific in describing what goes wrong. It would help if you 
post the content of your template.vm, the created launch.jnlp and how the launch.jnlp file 
should look.

-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/5/06, Jeff Louw <lo...@netzero.net> wrote:
>
> It is working ... but:
>
> The generated launch.jnlp file does not appear to be correct. I think the
> problem is the template.vm overrides the information that has already been
> provided in the pom.xml ?
>
> How can I setup the template.vm so that a correct launch.jnlp is created ?
> Any samples ?

The .vm file will be processed and some values are replaced according
to the doc:

See the "JNLP File Generation" section in:

http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html

Start by looking at what you want to obtain and replace the sections
that the plugin will auto-generate by the variable the plugin
understands. Be sure to have your pom configured correctly.

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
It is working ... but:

The generated launch.jnlp file does not appear to be correct. I think the
problem is the template.vm overrides the information that has already been
provided in the pom.xml ? 

How can I setup the template.vm so that a correct launch.jnlp is created ?
Any samples ? 
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3773362
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
In answer to my own question ;) Yes I can ... perhaps the plugin should
supply a default template if one is not specificed.

Thanks to everyone for all your help ... it is working now :)
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3771215
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
I found a jnlp.vm template in the source for the plugin. Could I just use
this one?
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3771135
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Jeff Louw <lo...@netzero.net>.
Thanks Wayne,

Where can I find an example of a template.vm ... It seems I must have one
defined.

Thanks ...
Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3770729
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Wayne Fay <wa...@gmail.com>.
In your <jnlp> section, do you have a <mainClass> defined?

Line 629 in JnlpMojo is:
if ( artifactContainsClass( artifact, jnlp.getMainClass() ) ) {

Wayne


On 4/5/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> I am using an alternate pom that specifies:
>
> <packaging>pom</packaging>
>
> and is almost exactly the same as the example found on:
>
> http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html
>
> and I still get:
>
> [DEBUG] Skipping artifact of type pom for jnlp
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failure to run the plugin:
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
> plugin:
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
> java:559)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecy
> cleExecutor.java:475)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
> ava:454)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
> fecycleExecutor.java:306)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
> ecutor.java:273)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> 140)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>        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: Failure to run
> the plugin:
>        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)
>        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
> java:534)
>        ... 16 more
> Caused by: java.lang.NullPointerException
>        at
> org.codehaus.mojo.webstart.JnlpMojo.processDependency(JnlpMojo.java:629)
>        at
> org.codehaus.mojo.webstart.JnlpMojo.processDependencies(JnlpMojo.java:588)
>        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:367)
>        ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> --
> View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3769779
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
I am using an alternate pom that specifies:

<packaging>pom</packaging>

and is almost exactly the same as the example found on:

http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html

and I still get:

[DEBUG] Skipping artifact of type pom for jnlp
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failure to run the plugin:

[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
plugin:
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecy
cleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
ava:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
fecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
ecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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: Failure to run
the plugin:
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:534)
        ... 16 more
Caused by: java.lang.NullPointerException
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependency(JnlpMojo.java:629)
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependencies(JnlpMojo.java:588)
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:367)
        ... 18 more
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3769779
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Thanks Jerome,

I appreciate you taking your time to look at this, and your patience.

I don't really want to break the project apart like that. Would I be able to
accomplish the same by placing the jnlp goal inside a profile - or would it
always first try to perform the packaging? Is there a command link argument
that would turn off the default packaging? I am thinking of something like:

mvn -X install -P myapp-jnlp
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3765169
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/4/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> I am using maven-2.0.2
>
> The dependencies are correctly in the repository. I have created the log and
> can send you my pom.xml ... what is your email address? Reply to
> louwj@netzero.net so I have your email address.

Jeff,

I looked at your pom and log (the log was unfortunately somwhow
truncated), but I think I know what's going on.

You are trying to build a jar and create a jnlp distribution at the same time.

Maven prefers/advocates the "one module one produced artifact" rule of
thumb, so the webstart plugin was written with that in mind. I.e. it
requires you to have your dependencies built and installed in your
local repository when you try to build your jnlp distribution. You
maybe already have the partnership jar in your local repository now,
but I guess that maven doesn't take it into account as you are in a
project that supposedly is going to produce this artifact again.

To make use of the jnlp plugin, please create a second module. You
will end up with something like.

project/pom.xml
project/partnership/pom.xml
project/partnership/...
project/partnership-jnlp/pom.xml
project/partnership-jnlp/...

If you find this limitating, please open an issue in Jira:

http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&mode=hide&pid=11062&sorter/order=DESC&sorter/field=priority&resolution=-1&component=12115

More documentation:

http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html

Good luck,

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
I am using maven-2.0.2

The dependencies are correctly in the repository. I have created the log and
can send you my pom.xml ... what is your email address? Reply to
louwj@netzero.net so I have your email address. 

Thanks,
Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3748378
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/5/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> Is there an example documented anywhere of a src\jnlp\resources directory ?
>
> The documentation at
> http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html
> says:
>
> "(location where all resources are taken. All contents are copied into the
> work directory)"
>
> What resources should be in this folder?

This directory is used to primarily contain the external files that
your jnlp file may refer to (in particular the icons/images/splash
screens). You can also add the files (like HTML pages) you want to
bundle within the same resulting zip.

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Is there an example documented anywhere of a src\jnlp\resources directory ?

The documentation at
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html
says:

"(location where all resources are taken. All contents are copied into the
work directory)"

What resources should be in this folder?
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3763345
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
I've continued struggling with this, not sure whether this represents
progress or not, but am now getting this exception when i run mvn install:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-jar-plugin
:2.1-SNAPSHOT:jar': Unable to find the mojo
'org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:j
ar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin'
org/apache/maven/archiver/MavenArchiveConfiguration
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executin
g goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:jar': Unable
to find the mojo 'org.apa
che.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:jar' in the plugin
'org.apache.maven.plugins:maven-ja
r-plugin'
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:538)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecy
cleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
ava:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
fecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
ecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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.PluginManagerException: Unable to find
the mojo 'org.apache.maven.
plugins:maven-jar-plugin:2.1-SNAPSHOT:jar' in the plugin
'org.apache.maven.plugins:maven-jar-plugin'
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:5
33)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:390)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:534)
        ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to loo
kup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:jar
', it could not be created
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:5
24)
        ... 18 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instancia
te component: role: 'null', implementation:
'org.apache.maven.plugin.jar.JarMojo'
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponen
tFactory.java:77)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentF
actory.java:62)
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.
java:1464)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(Abs
tractComponentManager.java:93)
        at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComp
onentManager.java:48)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        ... 21 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/maven/archiver/MavenArchiveConfiguration
        at
org.apache.maven.plugin.jar.AbstractJarMojo.<init>(AbstractJarMojo.java:81)
        at org.apache.maven.plugin.jar.JarMojo.<init>(JarMojo.java:30)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:3
9)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImp
l.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentF
actory.java:44)
        ... 25 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Apr 04 16:57:03 EDT 2006
[INFO] Final Memory: 7M/13M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3752983
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Have sent the files by email. The dependency (and others) are in the local
repository, so for some reason it cannot find them. :|

Being new to this technology I am a little overwhelmed, and so I thank you
all for your help.
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3749289
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
>>> Caused by: java.lang.IllegalStateException: artifact
>>> org.mercyships:partnership:jar:0.0.1 has no matc
>>> hing file, why? Check the logs...
>>
>> Is this artifact installed in your local repository?

On 4/4/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> This is the artifact it is generating, and it is also in the local
> repository.

Mmmmm.

For some reason, the plugin is unable to find the dependency it needs
to sign. This dependency should ne in your local repository under
something like

org/mercyships/partnership/0.0.1/partnership-0.0.1.jar

if it's not there, then I understand why you have the issue. If it's
there then I don't know.

- which version of maven are you using? 2.0.3 ?
- can you run
   mvn -X clean install > mvn.log
 and send me the log?
- could you also send me your pom.xml (is possible).

Send the files to my private email instead of the list if you wish to
not disclose them to all.

Cheers,

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
This is the artifact it is generating, and it is also in the local
repository.
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3747796
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/4/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> If I run mvn install and use the pom to create the webstart artifacts it gets
> a little further than running mvn webstart:jnlp. It created a directory in
> target called jnlp and places the jar of my application in there, however
> fails with this exception:
>


> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
> plugin:
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
> java:556)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycle
> Executor.java:485)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
> ava:455)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
> fecycleExecutor.java:303)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
> ecutor.java:270)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> 139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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: Failure to run
> the plugin:
>         at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)

[...]

> Caused by: java.lang.IllegalStateException: artifact
> org.mercyships:partnership:jar:0.0.1 has no matc
> hing file, why? Check the logs...

Is this artifact installed in your local repository?

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
If I run mvn install and use the pom to create the webstart artifacts it gets
a little further than running mvn webstart:jnlp. It created a directory in
target called jnlp and places the jar of my application in there, however
fails with this exception:


[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
plugin:
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycle
Executor.java:485)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
ava:455)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
fecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
ecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        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: Failure to run
the plugin:
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:531)
        ... 16 more
Caused by: java.lang.IllegalStateException: artifact
org.mercyships:partnership:jar:0.0.1 has no matc
hing file, why? Check the logs...
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependency(JnlpMojo.java:615)
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependencies(JnlpMojo.java:564)
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:367)
        ... 18 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 03 18:33:44 EDT 2006
[INFO] Final Memory: 5M/12M
[INFO]
---------------------------------------------------------------------------- 
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3747138
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

Looking at the snippet below it seems you have defined a repository with the id 'central' 
which overrides the default central repository. Changing the id of your definition to 
something else should do the trick.

-Tim

louwj@netzero.net schrieb:

[...]

> from the specified remote repositories:
>   central (http://snapshots.maven.codehaus.org/maven2),
>   snapshots (http://snapshots.maven.codehaus.org/maven2)
> 
> 

[...]



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Well, that exception is cleared up now. Not sure why. The only problem is
that it is looking for an ant jar, I already have version 1.5 in my
repository. Seems to be a transitive dependency somewhere that is broken.
Any ideas?

[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a range
[1.5,)
  ant:ant:jar:null

from the specified remote repositories:
  central (http://snapshots.maven.codehaus.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Apr 04 10:56:43 EDT 2006
[INFO] Final Memory: 5M/9M
[INFO]
----------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3746010
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Here is the full stack trace:

[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
plugin:
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycle
Executor.java:485)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
ava:455)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
fecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
ecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        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: Failure to run
the plugin:
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:531)
        ... 16 more
Caused by: java.lang.IllegalStateException: artifact
org.mercyships:partnership:jar:0.0.1 has no matc
hing file, why? Check the logs...
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependency(JnlpMojo.java:615)
        at
org.codehaus.mojo.webstart.JnlpMojo.processDependencies(JnlpMojo.java:564)
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:367)
        ... 18 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 03 18:33:44 EDT 2006
[INFO] Final Memory: 5M/12M
[INFO]
----------------------------------------------------------------------------

--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3742871
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by jerome lacoste <je...@gmail.com>.
On 4/4/06, louwj@netzero.net <lo...@netzero.net> wrote:
>
> Thanks Tim,
>
> Definitely closer :)
>
> Now I am getting this error:
>
> Embedded error: test-app:test-app:jar:0.0.1 has no matching file, why? Check
> the logs
>
> I cannot find any logs anywhere to check. I enabled stack traces and get
> this:
>
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
> plugin:
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
> java:556)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycle
> Executor.java:485)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
> ava:455)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
> fecycleExecutor.java:303)

[...]

> Caused by: org.apache.maven.plugin.MojoExecutionException: Failure to run
> the plugin:
>
> [... snip ... ]

Don't snip^on stack traces :)
That part might have been important.

Could you repost the full stack trace?

> caused by java.lang.IllegalStateException
>
> Any ideas?

Thanks

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Thanks Tim,

Definitely closer :)

Now I am getting this error:

Embedded error: test-app:test-app:jar:0.0.1 has no matching file, why? Check
the logs

I cannot find any logs anywhere to check. I enabled stack traces and get
this:

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the
plugin:
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.
java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycle
Executor.java:485)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.j
ava:455)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLi
fecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleEx
ecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        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: Failure to run
the plugin:

[... snip ... ]

caused by java.lang.IllegalStateException

Any ideas?

Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3735305
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Jeff,

you can check out the plugin from:

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-jar-plugin/

and then do the modifications mentioned here:

http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/%3c440B41A7.8010703@gmail.com%3e

-Tim

louwj@netzero.net schrieb:
> Tim / Geoffrey,
> 
> Would it be at all possible to email me a modified maven-jar-plugin.jar with
> the corrections in place?
> 
> mailto:louwj@netzero.net
> 
> Thanks again for all the help,
> 
> Jeff
> --
> View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697399
> Sent from the Maven - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Tim / Geoffrey,

Would it be at all possible to email me a modified maven-jar-plugin.jar with
the corrections in place?

mailto:louwj@netzero.net

Thanks again for all the help,

Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697399
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Hi Tim,

Thanks, that got me pretty close. I am now throwing the LifeCycleException
detailed in that JIRA entry you showed me. This means I need to find the
source for the:

" /org/apache/maven/plugins/maven-jar-plugin "

so I can create a corrected jar ... 

I do appreciate the help.

--
Jeff
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697193
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Forgot this:

the webstart-maven-plugin depends on the keytools-maven-plugin from the mojo project so 
you have to checkout and install that as well (before you build the webstart-plugin).

-Tim


Tim Kettler schrieb:
> Hi Jeff,
> 
> I have the following in my .m2/settings.xml...
> 
> -------------------------------------------------
> <settings>
>   <profiles>
>     <profile>
>       <id>default</id>
>       <repositories>
>         <repository>
>           <id>spike.releases.3dparty</id>
>           <name>Repository for third party libraries</name>
>           <url>file:///C:/MavenRepo</url>
>         </repository>
>       </repositories>
>     </profile>
> 
>     <profile>
>       <id>snapshots</id>
>       <repositories>
>         <repository>
>           <id>Maven Snapshots</id>
>           <url>http://snapshots.maven.codehaus.org/maven2/</url>
>           <snapshots>
>             <enabled>true</enabled>
>           </snapshots>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>         </repository>
>       </repositories>
> 
>       <pluginRepositories>
>         <pluginRepository>
>           <id>Maven Snapshots</id>
>           <url>http://snapshots.maven.codehaus.org/maven2/</url>
>           <snapshots>
>             <enabled>true</enabled>
>           </snapshots>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
> 
>   <activeProfiles>
>     <activeProfile>default</activeProfile>
>   </activeProfiles>
> </settings>
> -------------------------------------------------
> 
> ...and then just do an 'mvn -P default,snapshots install'. Due to 
> http://jira.codehaus.org/browse/MJAR-31 the webstart-plugin won't work 
> out of the box. You will have to check out the sources of the jar plugin 
> and patch it according to:
> 
> http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/%3c440B41A7.8010703@gmail.com%3e 
> 
> 
> and then 'mvn install' it.
> 
> Hope this helps
> -Tim
> 
> louwj@netzero.net schrieb:
>> Thanks Geoffrey,
>>
>> I checked it out of SVN and ran mvn install. It would appear that the
>> project refers to many dependencies that are not available in the
>> repository, and so the install fails. Is there any place I can get a
>> working, ready to use version of this plugin?
>>
>> Regards,
>> Jeff
>>
> 
> [...]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Tim Kettler <ti...@udo.edu>.
Hi Jeff,

I have the following in my .m2/settings.xml...

-------------------------------------------------
<settings>
   <profiles>
     <profile>
       <id>default</id>
       <repositories>
         <repository>
           <id>spike.releases.3dparty</id>
           <name>Repository for third party libraries</name>
           <url>file:///C:/MavenRepo</url>
         </repository>
       </repositories>
     </profile>

     <profile>
       <id>snapshots</id>
       <repositories>
         <repository>
           <id>Maven Snapshots</id>
           <url>http://snapshots.maven.codehaus.org/maven2/</url>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
           <releases>
             <enabled>false</enabled>
           </releases>
         </repository>
       </repositories>

       <pluginRepositories>
         <pluginRepository>
           <id>Maven Snapshots</id>
           <url>http://snapshots.maven.codehaus.org/maven2/</url>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
           <releases>
             <enabled>false</enabled>
           </releases>
         </pluginRepository>
       </pluginRepositories>
     </profile>
   </profiles>

   <activeProfiles>
     <activeProfile>default</activeProfile>
   </activeProfiles>
</settings>
-------------------------------------------------

...and then just do an 'mvn -P default,snapshots install'. Due to 
http://jira.codehaus.org/browse/MJAR-31 the webstart-plugin won't work out of the box. You 
will have to check out the sources of the jar plugin and patch it according to:

http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/%3c440B41A7.8010703@gmail.com%3e

and then 'mvn install' it.

Hope this helps
-Tim

louwj@netzero.net schrieb:
> Thanks Geoffrey,
> 
> I checked it out of SVN and ran mvn install. It would appear that the
> project refers to many dependencies that are not available in the
> repository, and so the install fails. Is there any place I can get a
> working, ready to use version of this plugin?
> 
> Regards,
> Jeff
> 

[...]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by "louwj@netzero.net" <lo...@netzero.net>.
Thanks Geoffrey,

I checked it out of SVN and ran mvn install. It would appear that the
project refers to many dependencies that are not available in the
repository, and so the install fails. Is there any place I can get a
working, ready to use version of this plugin?

Regards,
Jeff

The error I get is as follows:

[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: mojo-sandbox
Version: 2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM
'org.codehaus.mojo:mojo-sandbox' not found in r
epository: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
...... etc.
--
View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3689676
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin

Posted by Geoffrey De Smet <ge...@gmail.com>.
I don't think a snapshot has already been published.
I checked it out and "mvn install"ed it to use it.

louwj@netzero.net wrote:
> I am new to Maven, and have it working relatively well for managing
> dependencies, and simple builds. I am trying to get the Maven Webstart
> plugin working for me, but am having several (probably simple) problems. 
> 
> Right now when I execute the " mvn webstart:jnlp goal " it is fails to
> download the artifacts. 
> 
> It fails with the following message:
> 
> [ERROR] BUILD ERROR
> [INFO] -----------------------------------------------------
> ---
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.codehaus.mojo
> ArtifactId: mojo
> Version: 7
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.codehaus.mojo:mojo:pom:7
> 
> from the specified remote repositories:
>   central (http://snapshots.maven.codehaus.org/maven2)
> 
> I am using my own respository for artifacts, so I setup a pluginRepository
> in my pom.xml as follows (hope it displays):
> 
> <pluginRepositories>
>     <pluginRepository>
>       <id>central</id>
>       <name>Maven Plugin Repository</name>
>       <url>http://snapshots.maven.codehaus.org/maven2</url>
>       <!-- <url>http://maven.codehaus.org/maven2</url> -->
>       <layout>default</layout>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>       <!-- <releases>
>         <updatePolicy>never</updatePolicy>
>       </releases> -->
>     </pluginRepository>
>   </pluginRepositories>
> 
> Any help would be much appreciated.
> 
> --
> Jeff
> 
> --
> View this message in context: http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3679895
> Sent from the Maven - Users forum at Nabble.com.

-- 
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org