I am having problems executing the download-jnlp-servlet goal from another
(parent) directory which references my webstart module from a pom with
packaging pom.

I get a NPE when the plugin attempts to determine if the main class is
indeed present.

Caused by: java.lang.NullPointerException
        at
org.codehaus.mojo.webstart.util.DefaultArtifactUtil.artifactContainsC
lass(DefaultArtifactUtil.java:210)
        at
org.codehaus.mojo.webstart.JnlpDownloadServletMojo.resolveJarResource
s(JnlpDownloadServletMojo.java:491)
        at
org.codehaus.mojo.webstart.JnlpDownloadServletMojo.execute(JnlpDownlo
adServletMojo.java:179)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:133)
        ... 24 more

digging further, this is the call to artifact.getFile().getURL().getURI(),
my guess is that getFile returns null.

This works just fine when running maven from the actual module and not from
the parent module.  Why does it not find the artifact file in this case ?

Reply via email to