[ http://jira.codehaus.org/browse/MANTRUN-37?page=comments#action_56919 ]
Paul Zeeman commented on MANTRUN-37: ------------------------------------ I too have encountered this issue following a move to Maven 2.0.2 (to pick up another fix). While I have a multi-module project, running a specific module's pom standalone still shows the problem. Changing the version of the antrun plugin to 1.0 still shows the problem. I have a number of lines reporting through plexus before the error occurs: Please contact me if you would like more information. [INFO] Building jar: t:\optnet_ne_web_interface\firefly\craft\base\target\base-1 .0-SNAPSHOT.jar ----------------------------------------------------- this realm = app0.child-container[org.apache.maven.plugins:maven-antrun-plugin] urls[0] = file:/D:/Profiles/pzeeman/.m2/repository/org/apache/maven/plugins/mave n-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar urls[1] = file:/D:/Profiles/pzeeman/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[2] = file:/D:/Profiles/pzeeman/.m2/repository/ant/ant-launcher/1.6.5/ant-la uncher-1.6.5.jar Number of imports: 0 this realm = plexus.core.maven urls[0] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-artifact- 2.0.2.jar urls[1] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-error-dia gnostics-2.0.2.jar urls[2] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-model-2.0 .2.jar urls[3] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/jsch-0.1.24.jar urls[4] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-reporting -api-2.0.2.jar urls[5] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/plexus-interact ivity-api-1.0-alpha-4.jar urls[6] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-repositor y-metadata-2.0.2.jar urls[7] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/commons-cli-1.0 .jar urls[8] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-profile-2 .0.2.jar urls[9] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/wagon-file-1.0- alpha-6.jar urls[10] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-plugin-p arameter-documenter-2.0.2.jar urls[11] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/wagon-provider -api-1.0-alpha-6.jar urls[12] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-plugin-r egistry-2.0.2.jar urls[13] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/wagon-ssh-1.0- alpha-6.jar urls[14] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-artifact -manager-2.0.2.jar urls[15] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-project- 2.0.2.jar urls[16] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/wagon-ssh-exte rnal-1.0-alpha-6.jar urls[17] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-settings -2.0.2.jar urls[18] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-plugin-a pi-2.0.2.jar urls[19] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/doxia-sink-api -1.0-alpha-7.jar urls[20] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-monitor- 2.0.2.jar urls[21] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-plugin-d escriptor-2.0.2.jar urls[22] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/wagon-http-lig htweight-1.0-alpha-6.jar urls[23] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-core-2.0 .2.jar urls[24] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-core-2.0 .2-javadoc.jar urls[25] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/lib/maven-site-plu gin-2.0-alpha-2.jar Number of imports: 0 this realm = plexus.core urls[0] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/core/plexus-contain er-default-1.0-alpha-9.jar urls[1] = file:/t:/optnet_ne_web_interface/tools/maven-2.0.2/core/plexus-utils-1 .1.jar Number of imports: 0 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------- --- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------- --- [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu gins:maven-antrun-plugin:1.1:run': Unable to find the mojo 'org.apache.maven.plu gins:maven-antrun-plugin:1.1:run' in the plugin 'org.apache.maven.plugins:maven- antrun-plugin' org/apache/tools/ant/PropertyHelper [INFO] ------------------------------------------------------------------------- --- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl ugin manager executing goal 'org.apache.maven.plugins:maven-antrun-plugin:1.1:ru n': Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:ru n' in the plugin 'org.apache.maven.plugins:maven-antrun-plugin' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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: org.apache.maven.plugin.PluginManagerException: Unable to find the mo jo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the plugin 'org.apa che.maven.plugins:maven-antrun-plugin' at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul tPluginManager.java:536) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:393) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:531) ... 16 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven .plugins:maven-antrun-plugin:1.1:run', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:335) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul tPluginManager.java:527) ... 18 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException : Could not instanciate component: role: 'null', implementation: 'org.apache.mav en.plugin.antrun.AntRunMojo' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE xception(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn stance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De faultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.create ComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo mponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai ner.java:331) ... 20 more Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/PropertyHelper at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at java.lang.Class.getConstructor0(Class.java:2640) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn stance(JavaComponentFactory.java:44) ... 24 more > Antrun breaks on multi-module builds > ------------------------------------ > > Key: MANTRUN-37 > URL: http://jira.codehaus.org/browse/MANTRUN-37 > Project: Maven 2.x Antrun Plugin > Type: Bug > Versions: 1.1 > Environment: Maven 2.0.1 > Reporter: Mike Perham > Priority: Critical > Fix For: 1.2 > > > I just updated to antrun v1.1 (which needs to be marked as released in jira > BTW) and find that my multimodule build is now breaking. Running the build > in the child module itself works fine but if I build the parent, it fails > when it gets to the child with the antrun task. Here's part of the debug > output. Note it says 1.1 in the dependency tree but 1.0 further down. > {noformat} > [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1 > (selected for runtime) > [DEBUG] org.apache.maven:maven-project:jar:2.0.1 (selected for runtime) > [DEBUG] org.apache.maven:maven-model:jar:2.0.1 (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for > runtime) > [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) > [DEBUG] org.apache.maven:maven-profile:jar:2.0.1 (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 > (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer > found: 1.0.5) > [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 > (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer > found: 1.0.5) > [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) > [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5 (selected for runtime) > [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1 (selected for > runtime) > [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.1 (selected > for runtime) > [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 > (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (removed - nearer > found: 1.0.5) > [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1 (selected for runtime) > [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1 (selected for runtime) > [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.1 (selected for runtime) > [DEBUG] ant:ant:jar:1.6.5 (selected for runtime) > [DEBUG] ant:ant-launcher:jar:1.6.5 (selected for runtime) > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------------- > [INFO] Internal error in the plugin manager executing goal > 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find the > mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin > 'org.apache.maven.plugins:maven-antrun-plugin' > Component descriptor cannot be found in the component repository: > org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run. > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the > plugin manager executing goal > 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find the > mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin > 'org.apache.maven.plugins:maven-antrun-plugin' > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > 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:324) > 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.PluginManagerException: Unable to find the > mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin > 'org.apache.maven.plugins:maven-antrun-plugin' > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:553) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:410) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530) > ... 16 more > Caused by: > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > Component descriptor cannot be found in the component repository: > org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run. > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:544) > ... 18 more > {noformat} > My POM has this in the build plugins: > {noformat} > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.1</version> > {noformat} -- 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, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]