On 06/10/2012 07:04 AM, Stuart McCulloch wrote:
> On 10 Jun 2012, at 03:08, Raman Gupta wrote:
>
>> A build that is working fine with version 2.3.6 fails with the 2.4.0
>> snapshot:
>>
>> [ERROR] Bundle com.citi.edelng:edel-common:bundle:1.0-SNAPSHOT :
>> Analyzer Plugin aQute.lib.spring.SpringXMLType@12726a7 failed
>> java.lang.NullPointerException
>> [ERROR] Error(s) found in bundle configuration
>>
>> I'm not sure how to get maven-bundle-plugin to print the stack of the
>> NullPointerException inside bnd...
> adding -X to the mvn command will turn on debug logging and print the full
> stack trace at the end
Nope, I should have mentioned that I tried that and got the stack for
maven-bundle-plugin, but not for the underlying NPE in bnd:
$ mvn -X -e package
...
[ERROR] Bundle com.vivosys:xx:bundle:1.0-SNAPSHOT : Analyzer Plugin
aQute.lib.spring.SpringXMLType@817cff failed
java.lang.NullPointerException
[ERROR] Error(s) found in bundle configuration
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
...
[ERROR] Failed to execute goal
org.apache.felix:maven-bundle-plugin:2.4.0-SNAPSHOT:bundle
(default-bundle) on project xx: Error(s) found in bundle configuration
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal
org.apache.felix:maven-bundle-plugin:2.4.0-SNAPSHOT:bundle
(default-bundle) on project xx: Error(s) found in bundle configuration
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error(s)
found in bundle configuration
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:407)
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:264)
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:255)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.MojoFailureException: Error(s)
found in bundle configuration
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:356)
... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Regards,
Raman
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general