2009/5/13 Will Horn <[email protected]>
>
> Stuart McCulloch wrote:
> >
> > this is a separate issue (different to the one in your original testcase
> > configuration)
> >
> > the narrow version range is causing an error inside the Maven dependency
> > code,
> > if it's a mistake in the pom we should report it properly (without the
> > exception trace)
> > but if it's a problem in the dependency code then we might need to work
> > around it
> >
> > feel free to open a separate issue for this, as it's a different problem
> >
> Ok. This is actually the issue I was talking about and was intending the
> test case to reproduce :o) I have been able to further reproduce it in a
> JUnit test for maven-dependency-tree
> http://jira.codehaus.org/browse/MNG-4159 so I don't think it is a
> bundleall
> problem anymore. There is a workaround - for me to change the strict
> version range to a loose one, i.e. from "[1.2.13]" to "1.2.13", but that
> breaks the maven "rules" for my project.
>
> I'm not sure I understand the other issue (the first one) you are talking
> about. The only NPE I have seen is the one in the stack trace I pasted
> into
> my last post. Maybe we should close my bug (FELIX-1148) and open a new one
> for the first issue you saw. But what was it that you saw?
>
when running the bundleall goal from the top root project I get:
at
org.apache.maven.shared.osgi.DefaultMaven2OsgiConverter.getBundleSymbolicName(DefaultMaven2OsgiConver
ter.java:105)
at
org.apache.maven.shared.osgi.DefaultMaven2OsgiConverter.getBundleFileName(DefaultMaven2OsgiConverter.
java:237)
at
org.apache.felix.bundleplugin.BundleAllPlugin.getBundleName(BundleAllPlugin.java:437)
at
org.apache.felix.bundleplugin.BundleAllPlugin.getOutputFile(BundleAllPlugin.java:544)
at
org.apache.felix.bundleplugin.BundleAllPlugin.getBuiltFile(BundleAllPlugin.java:470)
at
org.apache.felix.bundleplugin.BundleAllPlugin.alreadyBundled(BundleAllPlugin.java:443)
at
org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:179)
at
org.apache.felix.bundleplugin.BundleAllPlugin.bundleAll(BundleAllPlugin.java:165)
at
org.apache.felix.bundleplugin.BundleAllPlugin.execute(BundleAllPlugin.java:152)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.ja
va:553)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExec
utor.java:371)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java
:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:112)
at
org.apache.maven.shared.osgi.DefaultMaven2OsgiConverter.getBundleSymbolicName(DefaultMaven2OsgiConver
ter.java:88)
... 26 more
because it tries to treat the pom as a jarfile, which is of course wrong...
Thanks for your help with this,
> Will
>
> --
> View this message in context:
> http://www.nabble.com/maven-bundle-plugin%3Abundleall-throws-NullPointerException-tp23495574p23507035.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> --
Cheers, Stuart