[ http://jira.codehaus.org/browse/MNG-1024?page=comments#action_49196 ]
Jerome Lacoste commented on MNG-1024:
-------------------------------------
I traced the issue to the pluginDescriptors not taking into account the plugin
version in the getJey() method.
Thus.
public PluginDescriptor getPluginDescriptor( Plugin plugin )
{
// TODO: include version, but can't do this in the plugin manager as it
is not resolved to the right version
// at that point. Instead, move the duplication check to the artifact
container, or store it locally based on
// the unresolved version?
return (PluginDescriptor) pluginDescriptors.get( plugin.getKey() );
}
The comment was added when implementing MNG-377.
I would need some hints to try to fix that as it is a little bit too close to
the core for me :)
Forcing dependency doesn't seem to help.
Until this is implemented, maybe there's a way to achieve a work-around by
purging the pluginDescriptors at some point?
> Reactor does not allow multiple plugin versions across projects
> ---------------------------------------------------------------
>
> Key: MNG-1024
> URL: http://jira.codehaus.org/browse/MNG-1024
> Project: Maven 2
> Type: Bug
> Versions: 2.0-beta-1
> Reporter: mike perham
> Fix For: 2.1
>
>
> I have a multiproject build which has the following dependency tree:
> top
> - storage
> - xdoclet plugin
> - antrun plugin 1.0-alpha-1
> - core
> - antrun plugin 1.0-alpha-2
> When I run the build for storage and core by themselves, everything is groovy.
> When I run the top-level build, the storage build and xdoclet plugin run just
> great but the core build fails with the following message:
> [ERROR] Nonexistent component:
> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0-alpha-1:run
> I am assuming there is some problem with multiple versions of the same plugin
> and the reactor but it certainly could be something I am missing in my pom.
> Here's how core is defining the plugin:
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.0-alpha-2-SNAPSHOT</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]