You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2005/10/25 23:51:11 UTC

[jira] Created: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Plugin extensions (dependencies) not resolved in reactor build
--------------------------------------------------------------

         Key: MNG-1323
         URL: http://jira.codehaus.org/browse/MNG-1323
     Project: Maven 2
        Type: Bug
  Components: maven-core  
    Versions: 2.0    
 Reporter: Kenney Westerhof


I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.

When run from the project dir itself it runs fine.
When running from the root of the project tree (reactor build, project one level below root),
antrun bails out because the taskdef can't be found (not on classpath).

It looks like the dependency isn't resolved, or not added to the plugins' classrealm.


-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_50268 ] 

John Casey commented on MNG-1323:
---------------------------------

It looks like some of the work I did to get the ant-mojo support up and running was related to this. Kenney's 04/Nov/2005 post was related to my fix for the ant-mojo stuff...

I added code to search the project instance for a matching Plugin instance before I used the current Plugin instance to verify the plugin. This is key here, since the one constructed by the lifecycle executor may not have any of the project's plugin-dependencies in it.

NOW, as for the latest incarnation of the problem, this is undoubtedly caused by Maven not disposing of plugin containers between project builds. If we did this, we would have the added benefit of cleaning out plugin-extensions (though we'd have to  be *very* careful about this last, since it means cleaning up things like the ArtifactHandlerManager, too).

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1323?page=all ]

John Casey updated MNG-1323:
----------------------------

    Fix Version:     (was: 2.0.3)
                 2.0.4

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.4

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_54633 ] 

Brett Porter commented on MNG-1323:
-----------------------------------

note above that this is scheduled for 2.0.3 (Feb release).

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1323?page=all ]

John Casey updated MNG-1323:
----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.2

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_50012 ] 

Kenney Westerhof commented on MNG-1323:
---------------------------------------

I don't think so - inheritance doesn't play a role. The parent-pom is just an empty pom stating 1 module -> the pom discussed above.
I'll find the it for it and augment it for this issue.

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_50020 ] 

Brett Porter commented on MNG-1323:
-----------------------------------

did you test it with 2.0 or 2.0.1? Maybe this should be closed as cannot reproduce?

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1323?page=all ]

Brett Porter updated MNG-1323:
------------------------------

    Description: 
I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.

When run from the project dir itself it runs fine.
When running from the root of the project tree (reactor build, project one level below root),
antrun bails out because the taskdef can't be found (not on classpath).

It looks like the dependency isn't resolved, or not added to the plugins' classrealm.


  was:
I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.

When run from the project dir itself it runs fine.
When running from the root of the project tree (reactor build, project one level below root),
antrun bails out because the taskdef can't be found (not on classpath).

It looks like the dependency isn't resolved, or not added to the plugins' classrealm.


    Fix Version: 2.0.1
    Environment: 

is this because they are not inherited, rather than anything to do with the reactor?

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1323?page=all ]
     
Kenney Westerhof closed MNG-1323:
---------------------------------

    Resolution: Fixed

Somehow the problem has gone away!

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "ruel loehr (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_54941 ] 

ruel loehr commented on MNG-1323:
---------------------------------

Are there any suggested work arounds for this issue?    Hence, if I wish to use a custom ant task in a child module (which would require a dependency upon the antrun plugin), how would I accomplish it, or is it impossible at this time?


> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_54948 ] 

Brett Porter commented on MNG-1323:
-----------------------------------

workaround is to include the dependency in the first antrun plugin instance encountered. one way to guarantee would be to include this in the root project.

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1323?page=all ]
     
Kenney Westerhof reopened MNG-1323:
-----------------------------------


The issue is a bit different - i got it reproducible now.

It seems, in the following situation:

root/pom.xml, modules: a, b
       a/pom.xml: define antrun, with any tasks (like <echo/>)
       b/pom.xml: define antrun, with <dependencies> section.

When run from 'root', dependencies are not resolved for plugin antrun in project b.
Probably because the plugin is already 'resolved' the different <dependencies> for
this instance are not resolved.

> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.1

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1323) Plugin extensions (dependencies) not resolved in reactor build

Posted by "Georges Polyzois (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1323?page=comments#action_54612 ] 

Georges Polyzois commented on MNG-1323:
---------------------------------------

Is this beeing resolved? I have exactly this problem as Kenney stated on 04/Nov/05. 
I am using Maven 2.0.1 and even changed to using antrun version 1.1-SNAPSHOT - with no sucess.


> Plugin extensions (dependencies) not resolved in reactor build
> --------------------------------------------------------------
>
>          Key: MNG-1323
>          URL: http://jira.codehaus.org/browse/MNG-1323
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> I've added a dependency on an Ant Task in project/build/plugins/plugin[artifactId='maven-antrun-plugin']/dependencies/ and run that anttask using the antrun plugin.
> When run from the project dir itself it runs fine.
> When running from the root of the project tree (reactor build, project one level below root),
> antrun bails out because the taskdef can't be found (not on classpath).
> It looks like the dependency isn't resolved, or not added to the plugins' classrealm.

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org