Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: 3.8
-
Labels:None
-
Environment:Fedora Linux 13 64 bit, Windows XP SP3, JDK 6 update 21
-
Testcase included:yes
-
Number of attachments :
Description
We have found this problem, when we tried to test Maven 3.0 with our project. With an older version we were able to compile the whole project without any problem. With a new version we have a problem with nbm-maven-plugin. We could see this :
[ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.3:manifest (default-cli) on project netrad.client.gui.module.core: See above for failures in runtime NetBeans dependencies verification.
There is a little help that we should have a look above but unfortunately there isn't any information why the building process failed. If we tried to run maven with -X option, we could see :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.3:manifest (default-cli) on project netrad.client.gui.module.core: See above for failures in runtime NetBeans dependencies verification.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
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:314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
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:597)
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.MojoFailureException: See above for failures in runtime NetBeans dependencies verification.
at org.codehaus.mojo.nbm.NetbeansManifestUpdateMojo.checkModuleClassPath(NetbeansManifestUpdateMojo.java:625)
at org.codehaus.mojo.nbm.NetbeansManifestUpdateMojo.execute(NetbeansManifestUpdateMojo.java:447)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
... 19 more
I have prepared a demo project which shows this problem. Also I have found out which dependency in pom.xml causes this problem. If I remove "test2.nvc.widget" dependency from the module-core, everything is ok.
Issue Links
- depends upon
-
MSHARED-167
dependency:tree omits batik-js
-
- is duplicated by
-
MNBMODULE-83
Showing dependency stack in build error
-
Your problem is that you have a jar-packaging project with a dependency on an nbm-packaging project, and then you are trying to use this as a dependency of another nbm-packaging project. I don't think this should be supported; nbm -> jar dependencies imply creating a library wrapper module, which is not going to work correctly here. That said, it is interesting that the plugin accepted this configuration under Maven 2.