[ 
http://jira.codehaus.org/browse/MENFORCER-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143494#action_143494
 ] 

Brian Fox commented on MENFORCER-42:
------------------------------------

The problem is that the eclipse plugin is running some lifecycle and thus 
kicking off the enforcer which requires maven to resolve dependencies that you 
may not have built yet. A workaround is to bind the enforcer to a phase like 
compile that is later than eclipse:eclipse kicks off. 

> Maven-Enforcer-Plugin fails in multimodule project when artifacts not in 
> repository
> -----------------------------------------------------------------------------------
>
>                 Key: MENFORCER-42
>                 URL: http://jira.codehaus.org/browse/MENFORCER-42
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 1.0-alpha-3, 1.0
>         Environment: Tested with Maven 2.0.7 and 2.0.8 on Linux with Java 1.5
>            Reporter: Martin Höller
>            Assignee: Brian Fox
>         Attachments: enforcer-test.tar.gz
>
>
> Create a new simple multimodule-project and call {{mvn validate}} at the 
> toplevel. This leads to a build failure if none of the multimodule-artifacts 
> are in your local repository.
> Attached is a simple test project for reproducing this bug.

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


Reply via email to