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 2.x JAR Plugin
  • MJAR-72

Option to include source within the jar artifact

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven 2.0.6, jdk 1.6

Description

I know it's fairly easy to create a separate source jar that contain the java source, but I've run across a case where I want to include the source along with the classes in the same jar.

In this case the jars are GWT modules which use the source to compile the java code into javascript.

Issue Links

relates to

Improvement - An improvement or enhancement to an existing feature or task. MJAR-30 Allow includes/excludes specification

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brill Pappin added a comment - 12/May/07 2:09 AM

I just tried to check out the source so I could provide a patch, but there seems to be quite a convoluted pom dependency thing going on.
Is there a preferred module to checkout so that I can actually build?

Show
Brill Pappin added a comment - 12/May/07 2:09 AM I just tried to check out the source so I could provide a patch, but there seems to be quite a convoluted pom dependency thing going on. Is there a preferred module to checkout so that I can actually build?
Hide
Permalink
Joerg Schaible added a comment - 14/May/07 12:31 AM

You can simply declare the sources as resources.

Show
Joerg Schaible added a comment - 14/May/07 12:31 AM You can simply declare the sources as resources.
Hide
Permalink
Olivier Lamy added a comment - 14/Dec/07 3:38 PM

As explained, just add the resource in your pom :

<build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
      </resource>
    </resources>
   ....
  </build>

And the sources will be included in the jar.

Show
Olivier Lamy added a comment - 14/Dec/07 3:38 PM As explained, just add the resource in your pom :
<build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
      </resource>
    </resources>
   ....
  </build>
And the sources will be included in the jar.

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Brill Pappin
Vote (1)
Watch (1)

Dates

  • Created:
    12/May/07 1:59 AM
    Updated:
    14/Dec/07 3:38 PM
    Resolved:
    14/Dec/07 3:38 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.