You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2017/09/16 19:41:01 UTC

[jira] [Commented] (MEAR-249) Maven EAR plugin - two libraries with a same ArtifactId

    [ https://issues.apache.org/jira/browse/MEAR-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16169029#comment-16169029 ] 

Karl Heinz Marbaise commented on MEAR-249:
------------------------------------------

After implementing [MEAR-171] which supports full name mapping...this should not be a problem anymore...cause based on this the artifacts will be named by default 
&#64;&#123;groupId&#125;&#64;-&#64;&#123;artifactId&#125;&#64;-&#64;&#123;version&#125;&#64;&#64;&#123;dashClassifier?&#125;&#64;.&#64;&#123;extension&#125;&#64;
which means you will get: {{com.group1-same-artifact.jar}} and {{com.group2-same-artifact.jar}}.

> Maven EAR plugin - two libraries with a same ArtifactId
> -------------------------------------------------------
>
>                 Key: MEAR-249
>                 URL: https://issues.apache.org/jira/browse/MEAR-249
>             Project: Maven Ear Plugin
>          Issue Type: Bug
>    Affects Versions: waiting-for-feedback
>            Reporter: Tomas Tulka
>
> When an EAR module has two (or more) dependencies with a same artifactId, Maven copy those into the /lib directory and one rewrites the other. In the end there is only one library in the EAR.
> This is not what I would expect, because it is correct to have such dependencies. The plugin should deal with it or print a warning (it's a tricky issue when it is about transitive dependencies).
> <dependency>
>     <groupId>com.group1</groupId>
>     <artifactId>same-artifact</artifactId>
> </dependency>
> <dependency>
>     <groupId>com.group2</groupId>
>     <artifactId>same-artifact</artifactId>
> </dependency>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)