You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Heinrich Nirschl (JIRA)" <ji...@codehaus.org> on 2006/08/15 20:11:49 UTC

[jira] Created: (MNG-2502) mvn package does not work on J2EE multi module build

mvn package does not work on J2EE multi module build
----------------------------------------------------

                 Key: MNG-2502
                 URL: http://jira.codehaus.org/browse/MNG-2502
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.4
         Environment: Linux, J2SE 1.4
            Reporter: Heinrich Nirschl


In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with

mvn package

fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.

If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.

This issue causes also problems for the realease plugin since the sub build fails.

-- 
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] Reopened: (MNG-2502) mvn package does not work on J2EE multi module build

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

Brett Porter reopened MNG-2502:
-------------------------------


> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>            Assignee: John Casey
>         Attachments: maven_multimodule_ejb.zip, mng-2502.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "Silvestrov Ilya (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Silvestrov Ilya updated MNG-2502:
---------------------------------

    Attachment: maven_multimodule_ejb.zip

A simple test case attached. 
When second/pom.xml has
        <dependency>
            <groupId>${groupId}</groupId>
            <artifactId>first</artifactId>
            <version>${version}</version>
            <type>ejb</type>
        </dependency>
it works.
With <type>ejb-client</type> it fails.

C:\Ilya\test_projects\maven_multimodule_ejb\second>mvn -v
Maven version: 2.0.9
Java version: 1.5.0_10
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>             Fix For: 2.0.x
>
>         Attachments: maven_multimodule_ejb.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174538#action_174538 ] 

John Casey commented on MNG-2502:
---------------------------------

Can you re-check this using Maven 2.1.0? I put in a fix for similar situations...ejb-client and other types of secondary artifacts are called "attachments", and I added some code to search the reactor projects for attached artifacts in 2.1.0...

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>             Fix For: 2.1.x
>
>         Attachments: maven_multimodule_ejb.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MNG-2502:
----------------------------

    Attachment: mng-2502.zip

This is a mockup project that should display the problems described in this issue. If you look in the root directory at the build.log file, you'll notice that when using Maven 2.1.0, the ejb-client jar is used from the reactor project, and not from the local repository (it doesn't even exist in my local repository at the time when this log file was taken).

If this test is in error, please reopen the issue.

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>             Fix For: 2.2.x
>
>         Attachments: maven_multimodule_ejb.zip, mng-2502.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "Varghese C V (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96395 ] 

Varghese C V commented on MNG-2502:
-----------------------------------

Similar behavior with version 2.0.6. I am running a multi-module JEE build. It works when maven package is run on the web project alone. But when in a multi-module build the ejb-client dependency in the web project fails for reactor artifacts as well as installed local  repository artifacts.

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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] Closed: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-2502.
---------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.2.x)
                   2.2.0

seems to have been fixed in maven 2.1.0, though I can't be sure.

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>            Assignee: John Casey
>             Fix For: 2.2.0
>
>         Attachments: maven_multimodule_ejb.zip, mng-2502.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

Posted by "Varghese C V (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96396 ] 

Varghese C V commented on MNG-2502:
-----------------------------------

http://jira.codehaus.org/browse/MWAR-59 seems to address the same issue

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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: (MNG-2502) mvn package does not work on J2EE multi module build

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

Brett Porter updated MNG-2502:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.0.x
      Component/s: Reactor and workspace

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>             Fix For: 2.0.x
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

-- 
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] Closed: (MNG-2502) mvn package does not work on J2EE multi module build

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

Brett Porter closed MNG-2502.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.2.0)

> mvn package does not work on J2EE multi module build
> ----------------------------------------------------
>
>                 Key: MNG-2502
>                 URL: http://jira.codehaus.org/browse/MNG-2502
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Reactor and workspace
>    Affects Versions: 2.0.4
>         Environment: Linux, J2SE 1.4
>            Reporter: Heinrich Nirschl
>            Assignee: John Casey
>         Attachments: maven_multimodule_ejb.zip, mng-2502.zip
>
>
> In a multi module build consisting of an ejb.jar (with an ejb-client.jar), a war, and an ear where the war depends on the ejb-client.jar and the ear depends on the ejb.jar and the war, a reactor build with
> mvn package
> fails. The war build tries to download the ejb-client.jar from the repository instead of using the just built version.
> If I first run 'mvn install' in the ejb module the following multi module 'mvn package' succeeds.
> This issue causes also problems for the realease plugin since the sub build fails.

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