You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eugene Maysyuk (JIRA)" <ji...@apache.org> on 2016/07/22 15:40:21 UTC

[jira] [Updated] (MJAR-232) The MJP doesn't genereate artifact with 'tests' classifier for 'test-jar' goal

     [ https://issues.apache.org/jira/browse/MJAR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Maysyuk updated MJAR-232:
--------------------------------
    Description: 
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


  was:
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 for 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



> 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
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 3.0.1, 3.0.2
>         Environment: Windows 7
>            Reporter: Eugene Maysyuk
>              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
(v6.3.4#6332)