[
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