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 2018/07/07 20:44:00 UTC

[jira] [Updated] (MRAR-9) Avoid to bundle rar dependencies (w/o scope=provided) inside the rar archive

     [ https://issues.apache.org/jira/browse/MRAR-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise updated MRAR-9:
-----------------------------------
    Fix Version/s:     (was: 3.0.0)

> Avoid to bundle rar dependencies (w/o scope=provided) inside the rar archive
> ----------------------------------------------------------------------------
>
>                 Key: MRAR-9
>                 URL: https://issues.apache.org/jira/browse/MRAR-9
>             Project: Maven Rar Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.1
>         Environment: Maven 2.0.4
>            Reporter: Carsten Karkola
>            Assignee: Stephane Nicoll
>            Priority: Major
>
> If I use "provided" the dependencies will never be included, my problem is
> 1. projects:
> my-jar
> rar1: dependency to my-jar
> rar2: dependency to my-jar
> ejb1: dependency to my-jar
> ear: dependency to rar1, rar2. ejb1
> 2. inside the ear:
> ejb1.jar
> rar1.rar
> rar2.rar
> lib/my-jar.jar
> 3. This works fine for packaging=ejb - the my-jar.jar gets copied to the lib dir during build of
> the ear. But the same jar gets also packaged in the rar1 and in the rar2 archive. So I have it
> three times instead only having the entries in MANFIFEST.MF/Class-Path and the jar only
> once in the lib subdir.
> The Manifest entries are not the problem, to get the jar not packaged in the rars is my
> problem.
> 4. my proposal:
> add plugin configuration parameter <includeDependencies>false</includeDependencies>
> in RarMojo.java additional parameter and check:
> /**
>     * Specify if the specified dependencies of this project should be
>     * included in the rar file ; default is true.
>       *
>     * @parameter
>       */
>       private Boolean includeDependencies = Boolean.TRUE;
> ....
> // Copy dependencies
> try
> {
> if (includeDependencies.booleanValue()) { // additional check
> carsten



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)