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 Jar Plugin
  • MPJAR-32

Add the ability to include the source code in the jar

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None

Description

Often projects ship jars that include the source code, for convenience, or use in an IDE.

This patch adds:

  • a plugin property, maven.jar.include.source, defaulted to false, that is used to decide whether source is included in the jar
  • a plugin property, maven.jar.source.path, defaulted to 'src', which is the location of the source in the jar
  • a goal to copy source into the maven.build.dest directory before jar'ing.
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    jar-source.txt
    10/Jul/04 5:58 AM
    5 kB
    dion gillard
  2. Text File
    jar-source2.txt
    11/Jul/04 2:30 AM
    8 kB
    dion gillard
  3. Text File
    jar-source3.txt
    11/Jul/04 2:39 AM
    10 kB
    dion gillard
  4. Text File
    jar-source4.txt
    11/Jul/04 2:51 AM
    11 kB
    dion gillard

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
dion gillard added a comment - 10/Jul/04 5:58 AM

Patch to allow creation of source jars

Show
dion gillard added a comment - 10/Jul/04 5:58 AM Patch to allow creation of source jars
Hide
Permalink
dion gillard added a comment - 11/Jul/04 2:25 AM

I have a new patch which adds the test case

Show
dion gillard added a comment - 11/Jul/04 2:25 AM I have a new patch which adds the test case
Hide
Permalink
dion gillard added a comment - 11/Jul/04 2:30 AM

Patch including basic test cases.

Show
dion gillard added a comment - 11/Jul/04 2:30 AM Patch including basic test cases.
Hide
Permalink
dion gillard added a comment - 11/Jul/04 2:39 AM

Previous patch (2) was created using bad CVS directory.

This patch includes the additional function and test cases

Show
dion gillard added a comment - 11/Jul/04 2:39 AM Previous patch (2) was created using bad CVS directory. This patch includes the additional function and test cases
Hide
Permalink
dion gillard added a comment - 11/Jul/04 2:51 AM

patch #4. In this patch, the tests are split into separate goals and there's now a test for a custom source path in the jar

Show
dion gillard added a comment - 11/Jul/04 2:51 AM patch #4. In this patch, the tests are split into separate goals and there's now a test for a custom source path in the jar
Hide
Permalink
Lars Stucki added a comment - 20/Sep/05 3:25 AM

Is there a reason why this patch never made it into a release?

By looking at the documentation it seems though as this issue has already been resolved (see description of the property 'maven.jar.include.source').

Show
Lars Stucki added a comment - 20/Sep/05 3:25 AM Is there a reason why this patch never made it into a release? By looking at the documentation it seems though as this issue has already been resolved (see description of the property 'maven.jar.include.source').
Hide
Permalink
Trygve Laugstol added a comment - 20/Sep/05 6:07 AM

I don't this that his is a useful feature to actually include the sources inside your jar. Source artifacts are useful and should be separate artifacts and installed into the repository as a separate jar. Maven 2 already supports this.

Show
Trygve Laugstol added a comment - 20/Sep/05 6:07 AM I don't this that his is a useful feature to actually include the sources inside your jar. Source artifacts are useful and should be separate artifacts and installed into the repository as a separate jar. Maven 2 already supports this.
Hide
Permalink
Lukas Theussl added a comment - 22/Feb/06 5:35 PM

This functionality is now provided by the maven-source-plugin.

Show
Lukas Theussl added a comment - 22/Feb/06 5:35 PM This functionality is now provided by the maven-source-plugin.

People

  • Assignee:
    Jason van Zyl
    Reporter:
    dion gillard
Vote (2)
Watch (3)

Dates

  • Created:
    10/Jul/04 5:57 AM
    Updated:
    22/Feb/06 5:35 PM
    Resolved:
    22/Feb/06 5:35 PM
  • 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.