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 Source Plugin
  • MSOURCES-50

Add optional 'classifier' for source artifact

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 2.2
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

The default classifiers, 'sources' and 'test-sources' are sufficient for most cases, but I have come across cases where specifying a different classifier could be useful. E.g. when building a skinny war with packaged classes, the 'sources' artifact is really the source of the (secondary) classes artifact, not the primary war artifact. As such, the classifier of the sources should be 'classes-sources', not 'sources'.

I've attached a basic patch which I am using.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    classifier.patch
    03/Sep/09 9:23 AM
    3 kB
    Barry Pitman

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Rainer W added a comment - 28/Jun/10 3:54 AM

I have a Testing Project which contains Classes for JUnit > 4.4. So I created a profile which allows me to set the classifier on the maven-jar plugin. Works fine, except the source Packaging has still this open Issue.

The worst part is: when I first run a normal package, and afterwards the Profile with the classifiert. The jar plugin creates a correct classified jar file. But the source plugin overwrites my normal sources jar, because it dosn't support classifiers!!!

Show
Rainer W added a comment - 28/Jun/10 3:54 AM I have a Testing Project which contains Classes for JUnit > 4.4. So I created a profile which allows me to set the classifier on the maven-jar plugin. Works fine, except the source Packaging has still this open Issue. The worst part is: when I first run a normal package, and afterwards the Profile with the classifiert. The jar plugin creates a correct classified jar file. But the source plugin overwrites my normal sources jar, because it dosn't support classifiers!!!

People

  • Assignee:
    Unassigned
    Reporter:
    Barry Pitman
Vote (3)
Watch (0)

Dates

  • Created:
    03/Sep/09 9:23 AM
    Updated:
    28/Jun/10 3:54 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.