[
https://issues.apache.org/jira/browse/MJAR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957311#comment-17957311
]
Matthias Bünger commented on MJAR-232:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#389|https://github.com/apache/maven-jar-plugin/issues/389].
> The MJP doesn't genereate artifact with 'tests' classifier for 'test-jar' goal
> ------------------------------------------------------------------------------
>
> Key: MJAR-232
> URL: https://issues.apache.org/jira/browse/MJAR-232
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 3.0.0, 3.0.1, 3.0.2
> Environment: Windows 7
> Reporter: Eugene Maysyuk
> Priority: Major
> Labels: build, test
>
> The new version of maven-jar-plugin doesn't generate artifact with 'tests'
> classifier for 'test-jar' goal.
> I have prepared sample project on the github.
> https://github.com/EugenMaysyuk/test-jar-classifier
> You can build it with different maven-jar-plugin versions (2.6 and 3.0.0) to
> see the difference in 'test-jar' goal.
> The part of build log when I used the maven-jar-plugin:2.6:
> [INFO] --- maven-jar-plugin:*2.6:test-jar* (default) @ sample ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar:
> D:\test-jar-classifier\target\sample-1.0-SNAPSHOT-*tests*.jar
> The part of build log when I used the maven-jar-plugin:3.0.2:
> [INFO] --- maven-jar-plugin:*3.0.2:test-jar* (default) @ sample ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar:
> D:\test-jar-classifier\target\sample-1.0-SNAPSHOT-*classes*.jar
--
This message was sent by Atlassian Jira
(v8.20.10#820010)