jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x RAR Plugin
  • MPRAR-4

Do not bundle dependecies in rar without scope=provided

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Maven 2.0.4, rar plugin 2.2

Description

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

Issue Links

duplicates

New Feature - A new feature of the product, which has yet to be developed. MRAR-9 Avoid to bundle rar dependencies (w/o scope=provided) inside the rar archive

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Carsten Karkola added a comment - 02/Jun/06 9:56 AM

It is the wrong rar plugin, sorry. I try to move this issue to the rar-plugin for mvn 2.x

Show
Carsten Karkola added a comment - 02/Jun/06 9:56 AM It is the wrong rar plugin, sorry. I try to move this issue to the rar-plugin for mvn 2.x

People

  • Assignee:
    Unassigned
    Reporter:
    Carsten Karkola
Vote (0)
Watch (0)

Dates

  • Created:
    02/Jun/06 9:52 AM
    Updated:
    02/Jun/06 10:24 AM
    Resolved:
    02/Jun/06 10:24 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.