You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Brackx (JIRA)" <ji...@codehaus.org> on 2008/09/19 14:41:49 UTC

[jira] Created: (MENFORCER-52) multi module build fails

multi module build fails
------------------------

                 Key: MENFORCER-52
                 URL: http://jira.codehaus.org/browse/MENFORCER-52
             Project: Maven 2.x Enforcer Plugin
          Issue Type: Bug
    Affects Versions: 1.0-alpha-3, 1.0-alpha-4
         Environment: maven 2.0.9
            Reporter: Michael Brackx
            Assignee: Brian Fox
         Attachments: enforcer-bug.zip

alpha-4 is not fixing my multi module projects build problems
attached is a simple project that fails when building with "mvn verify"

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

        

[jira] (MENFORCER-52) multi module build fails

Posted by "Barrie Treloar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MENFORCER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Barrie Treloar closed MENFORCER-52.
-----------------------------------

    Resolution: Cannot Reproduce

Unable to reproduce with Apache Maven 3.0.4 (r1232337; 2012-01-17 19:14:56+1030)


                
> multi module build fails
> ------------------------
>
>                 Key: MENFORCER-52
>                 URL: https://jira.codehaus.org/browse/MENFORCER-52
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 1.0-alpha-3, 1.0-alpha-4
>         Environment: maven 2.0.9
>            Reporter: Michael Brackx
>            Assignee: Brian Fox
>         Attachments: enforcer-bug.zip
>
>
> alpha-4 is not fixing my multi module projects build problems
> attached is a simple project that fails when building with "mvn verify"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MENFORCER-52) multi module build fails

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MENFORCER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148507#action_148507 ] 

Brian Fox commented on MENFORCER-52:
------------------------------------

There isn't much in the plugin to do about this. The plugin tells maven that it needs dependencies resolved and so before it's executed for pom2 in your sample, maven tries to resolve the dependencies and fails. The plugin never even gets executed.

If I turn off resolution, then the plugin has to attempt to resolve everything by itself and this is full of problems because there currently is no way to ask maven to resolve x and its dependencies and get the same results as maven core would. It's due to faulty logic in the resolver that is order dependent and must have the entire dependency tree the same to guarantee the same results. This is being fixed in maven 3.0.

In the meantime, about all i can do is make a new enforcer goal that doesn't require dependencies, but then certain rules would fail. I've toyed with doing this for a while, but it almost seems more confusing and error prone.

> multi module build fails
> ------------------------
>
>                 Key: MENFORCER-52
>                 URL: http://jira.codehaus.org/browse/MENFORCER-52
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-3, 1.0-alpha-4
>         Environment: maven 2.0.9
>            Reporter: Michael Brackx
>            Assignee: Brian Fox
>         Attachments: enforcer-bug.zip
>
>
> alpha-4 is not fixing my multi module projects build problems
> attached is a simple project that fails when building with "mvn verify"

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

        

[jira] Commented: (MENFORCER-52) multi module build fails

Posted by "Michael Brackx (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MENFORCER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148505#action_148505 ] 

Michael Brackx commented on MENFORCER-52:
-----------------------------------------

this probably a duplicate of MENFORCER-42
i saw MENFORCER-27 in the alpha-4 release notes and incorrectly assumed the multi module problems were fixed

> multi module build fails
> ------------------------
>
>                 Key: MENFORCER-52
>                 URL: http://jira.codehaus.org/browse/MENFORCER-52
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-3, 1.0-alpha-4
>         Environment: maven 2.0.9
>            Reporter: Michael Brackx
>            Assignee: Brian Fox
>         Attachments: enforcer-bug.zip
>
>
> alpha-4 is not fixing my multi module projects build problems
> attached is a simple project that fails when building with "mvn verify"

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

        

[jira] Updated: (MENFORCER-52) multi module build fails

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MENFORCER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MENFORCER-52:
----------------------------------

    Component/s: Plugin

> multi module build fails
> ------------------------
>
>                 Key: MENFORCER-52
>                 URL: http://jira.codehaus.org/browse/MENFORCER-52
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 1.0-alpha-3, 1.0-alpha-4
>         Environment: maven 2.0.9
>            Reporter: Michael Brackx
>            Assignee: Brian Fox
>         Attachments: enforcer-bug.zip
>
>
> alpha-4 is not fixing my multi module projects build problems
> attached is a simple project that fails when building with "mvn verify"

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