[ 
https://issues.apache.org/jira/browse/MSOURCES-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959383#comment-17959383
 ] 

Matthias Bünger commented on MSOURCES-10:
-----------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-source-plugin#115|https://github.com/apache/maven-source-plugin/issues/115].
 

> Attached source artifact should not be added for artifacts with classifier
> --------------------------------------------------------------------------
>
>                 Key: MSOURCES-10
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-10
>             Project: Maven Source Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Vincent Massol
>            Assignee: Vincent Massol
>            Priority: Major
>             Fix For: 2.0.2
>
>
> If the main artifact has a classifier then we shouldn't attach a source 
> artifact to it as Maven2 only allows one classifier. Doing the attachment 
> leads to errors such as:
> {noformat}
> [INFO] Installing 
> C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\usertest\target\clover\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-clover.jar
>  to C:\Documents and 
> Settings\vmassol\.m2\repository\org\apache\maven\plugins\maven-clover-plugin-sample-usertest\1.0-SNAPSHOT\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-clover.jar
> [INFO] Installing 
> C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\usertest\target\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-sources.jar
>  to C:\Documents and 
> Settings\vmassol\.m2\repository\org\apache\maven\plugins\maven-clover-plugin-sample-usertest\1.0-SNAPSHOT\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-sources.jar
> [INFO] Installing 
> C:\dev\maven\trunks\plugins\maven-clover-plugin\src\it\usertest\target\clover\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-clover-sources.jar
>  to C:\Documents and 
> Settings\vmassol\.m2\repository\org\apache\maven\plugins\maven-clover-plugin-sample-usertest\1.0-SNAPSHOT\maven-clover-plugin-sample-usertest-1.0-SNAPSHOT-sources.jar
> {noformat}
> In the last line, notice the double classifier "-clover-sources" and the 
> wrong destination "-sources".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to