[
http://jira.codehaus.org/browse/MNBMODULE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209424#action_209424
]
Pavel Jisl commented on MNBMODULE-75:
-------------------------------------
I found this problem, when I tried to compile our complex application with
nbm-maven-plugin 3.2-SNAPSHOT. I was surprised, that I got this error message.
With 3.1 version it was fine without problems.
Failed dependencies was spring, commons-lang, commons-io and maybe some others,
hopefully all the osgi bundles. When I was looking into code, I found
difference between 3.1 and 3.2-SNAPSHOT codebase and the commit was called
"prepare infra for osgi bundle recognition." and one more with "osgi" string.
I tried to prepare testcase for this error, but had difficulties with it.
> Dependency verification failure - More descriptive error logging
> ----------------------------------------------------------------
>
> Key: MNBMODULE-75
> URL: http://jira.codehaus.org/browse/MNBMODULE-75
> Project: Maven 2.x Netbeans Module Plugin
> Issue Type: Improvement
> Affects Versions: 3.2
> Reporter: Pavel Jisl
> Assignee: Milos Kleint
> Fix For: 3.2
>
> Attachments: nbm-plugin-error.zip
>
>
> Plugin should print out more descriptive information, when there is a problem
> in dependencies. In simple attached example, I got error without any
> information, what happened:
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 2 source files to
> P:\test\nbm-plugin-error\module1\target\class
> es
> [INFO] [nbm:manifest {execution: default-manifest}]
> [INFO] NBM Plugin generates manifest
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] See above for failures in runtime NebBeans dependencies verification.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> And with -e switch:
> [INFO] Trace
> org.apache.maven.BuildFailureException: See above for failures in runtime
> NebBeans dependencies verification.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:699)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.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:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
> 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.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.MojoFailureException: See above for
> failuresin runtime NebBeans dependencies verification.
> at
> org.codehaus.mojo.nbm.NetbeansManifestUpdateMojo.checkModuleClassPath(NetbeansManifestUpdateMojo.java:585)
> at
> org.codehaus.mojo.nbm.NetbeansManifestUpdateMojo.execute(NetbeansManifestUpdateMojo.java:432)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
> ... 17 more
> [INFO]
> ------------------------------------------------------------------------
> It happened in case, when there are more dependencies, not listed, but are
> not from transitional module or are not private.
> See lines NetbeansManifestUpdateMojo.java:552 - 587.
> Simple testcase attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email