You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Barry Pitman (JIRA)" <ji...@codehaus.org> on 2009/09/03 16:23:41 UTC
[jira] Created: (MSOURCES-50) Add optional 'classifier' for source
artifact
Add optional 'classifier' for source artifact
---------------------------------------------
Key: MSOURCES-50
URL: http://jira.codehaus.org/browse/MSOURCES-50
Project: Maven 2.x Source Plugin
Issue Type: New Feature
Reporter: Barry Pitman
Attachments: classifier.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSOURCES-50) Add optional 'classifier' for source artifact
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSOURCES-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MSOURCES-50.
--------------------------------
Resolution: Fixed
fixed.
I changed a bit the patch.
> Add optional 'classifier' for source artifact
> ---------------------------------------------
>
> Key: MSOURCES-50
> URL: https://jira.codehaus.org/browse/MSOURCES-50
> Project: Maven 2.x Source Plugin
> Issue Type: New Feature
> Reporter: Barry Pitman
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: classifier.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MSOURCES-50) Add optional 'classifier' for source
artifact
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arnaud Heritier updated MSOURCES-50:
------------------------------------
Fix Version/s: 2.2
> Add optional 'classifier' for source artifact
> ---------------------------------------------
>
> Key: MSOURCES-50
> URL: http://jira.codehaus.org/browse/MSOURCES-50
> Project: Maven 2.x Source Plugin
> Issue Type: New Feature
> Reporter: Barry Pitman
> Fix For: 2.2
>
> Attachments: classifier.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSOURCES-50) Add optional 'classifier' for
source artifact
Posted by "Rainer W (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSOURCES-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226537#action_226537 ]
Rainer W commented on MSOURCES-50:
----------------------------------
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!!!
> Add optional 'classifier' for source artifact
> ---------------------------------------------
>
> Key: MSOURCES-50
> URL: http://jira.codehaus.org/browse/MSOURCES-50
> Project: Maven 2.x Source Plugin
> Issue Type: New Feature
> Reporter: Barry Pitman
> Fix For: 2.2
>
> Attachments: classifier.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSOURCES-50) Add optional 'classifier' for source artifact
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSOURCES-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy reassigned MSOURCES-50:
------------------------------------
Assignee: Olivier Lamy
> Add optional 'classifier' for source artifact
> ---------------------------------------------
>
> Key: MSOURCES-50
> URL: https://jira.codehaus.org/browse/MSOURCES-50
> Project: Maven 2.x Source Plugin
> Issue Type: New Feature
> Reporter: Barry Pitman
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: classifier.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira