You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2009/07/02 00:12:05 UTC

[jira] Closed: (MANTRUN-106) Maven dependency bug can lead to very confusing failures

     [ http://jira.codehaus.org/browse/MANTRUN-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier closed MANTRUN-106.
-----------------------------

      Assignee: Paul Gier
    Resolution: Duplicate

Added an entry to the site FAQ in [r790402|http://svn.apache.org/viewvc?view=rev&revision=790402]

> Maven dependency bug can lead to very confusing failures
> --------------------------------------------------------
>
>                 Key: MANTRUN-106
>                 URL: http://jira.codehaus.org/browse/MANTRUN-106
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Benson Margulies
>            Assignee: Paul Gier
>
> The purpose of this report is to suggest an FAQ entry or other web content, as follows.
> Using the Maven Antrun Plugin in multiple projects in the Reactor
> In Maven 2.0.x, there is a significant bug that can lead to very perplexing failures with the antrun plugin. There are two conditions that you have to meet to get into this problem.
> 1) You have to use the plugin in two projects that are loaded into the reactor via <modules/> .
> 2) You have to require additional plugin dependencies on the plugin.
> In Maven 2.0.x, the dependencies of the first project into the reactor win, and all the others are entirely ignored.
> Concretely, if your first project uses the plugin with no special dependencies, and your second one tries to use ant-trax, the second antrun execution will fail, and complain that it can't find the classes in ant-trax. 
> The only solution to this is to ensure that, in all of the places where you use the plugin, you list the same dependencies.

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