You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Harald Soevik (JIRA)" <ji...@codehaus.org> on 2007/05/11 17:20:12 UTC
[jira] Issue Comment Edited: (MEAR-64) Transitive dependency
artifacts cannot be exploded
[ http://jira.codehaus.org/browse/MEAR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_95679 ]
Harald Soevik edited comment on MEAR-64 at 5/11/07 10:18 AM:
-------------------------------------------------------------
I've got one module that I want to explode: mt-jar.
{noformat}
<modules>
<ejbModule>
<groupId>com.computas.mt</groupId>
<artifactId>mt-jar</artifactId>
<unpack>true</unpack>
</ejbModule>
<jarModule>
<groupId>com.computas.mt</groupId>
<artifactId>mt-xml-schema</artifactId>
</jarModule>
...
</modules>
{noformat}
Then, mt-xml-schema has mt-jar as dependency (this is from mt-xml-schema's pom.xml):
{noformat}
<dependencies>
<dependency>
<groupId>com.computas.mt</groupId>
<artifactId>mt-jar</artifactId>
</dependency>
...
</dependencies>
{noformat}
Trying to build the EAR results in this output:
{noformat}
[INFO] [ear:ear]
...
[INFO] Copying artifact[ejb:com.computas.mt:mt-jar:1.0.8-SNAPSHOT] to[mt-jar-1.0.8-SNAPSHOT.jar] (unpacked)
[INFO] Expanding: /home/computas/.m2/repository/com/computas/mt/mt-jar/1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar into /home/computas/matsys/mt-ear-clustered/target/mt-ear-clustered-1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar
...
[INFO] Copying artifact[jar:com.computas.mt:mt-jar:1.0.8-SNAPSHOT] to[mt-jar-1.0.8-SNAPSHOT.jar]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error copying EAR modules
Embedded error: /home/computas/matsys/mt-ear-clustered/target/mt-ear-clustered-1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar (Is a directory)
{noformat}
Observe that the mt-jar artifact is being copied twice, producing an error because it already exists as an exploded artifact.
was:
I've got one module that I want to explode: mt-jar.
{noformat}
<modules>
<ejbModule>
<groupId>com.computas.mt</groupId>
<artifactId>mt-jar</artifactId>
<unpack>true</unpack>
</ejbModule>
<jarModule>
<groupId>com.computas.mt</groupId>
<artifactId>mt-xml-schema</artifactId>
</jarModule>
...
</modules>
{noformat}
Then, mt-xml-schema has mt-jar as dependency:
{noformat}
<dependencies>
<dependency>
<groupId>com.computas.mt</groupId>
<artifactId>mt-jar</artifactId>
</dependency>
...
</dependencies>
{noformat}
Trying to build the EAR results in this output:
{noformat}
[INFO] [ear:ear]
...
[INFO] Copying artifact[ejb:com.computas.mt:mt-jar:1.0.8-SNAPSHOT] to[mt-jar-1.0.8-SNAPSHOT.jar] (unpacked)
[INFO] Expanding: /home/computas/.m2/repository/com/computas/mt/mt-jar/1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar into /home/computas/matsys/mt-ear-clustered/target/mt-ear-clustered-1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar
...
[INFO] Copying artifact[jar:com.computas.mt:mt-jar:1.0.8-SNAPSHOT] to[mt-jar-1.0.8-SNAPSHOT.jar]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error copying EAR modules
Embedded error: /home/computas/matsys/mt-ear-clustered/target/mt-ear-clustered-1.0.8-SNAPSHOT/mt-jar-1.0.8-SNAPSHOT.jar (Is a directory)
{noformat}
Observe that the mt-jar artifact is being copied twice, producing an error because it already exists as an exploded artifact.
> Transitive dependency artifacts cannot be exploded
> --------------------------------------------------
>
> Key: MEAR-64
> URL: http://jira.codehaus.org/browse/MEAR-64
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Reporter: Harald Soevik
> Priority: Minor
>
> I cannot find a way to explode an artifact when a project is directly dependent on artifact B and transitively dependent on A.
> Either A cannot be exploded because it is not defined as direct dependency, or A cannot be included as transitive dependency because it has already been exploded as a direct dependency.
> Might be worth a fix ?
--
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