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.

[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

My POM has this in the build plugins:

        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.1</version>


-- 
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]

Reply via email to