maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Maysyuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MJAR-232) The MJP doesn't genereate artifact with 'tests' classifier for 'test-jar' goal
Date Fri, 22 Jul 2016 15:49:20 GMT

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

Eugene Maysyuk commented on MJAR-232:
-------------------------------------

Here is more build info in case of using maven-jar-plugin:3.0.2:

[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ sample ---
[INFO] Building jar: D:\test-jar-classifier\target\sample-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:*jar* (default) @ sample ---
[INFO] Building jar: D:\test-jar-classifier\target\sample-1.0-SNAPSHOT-*classes*.jar
[INFO] 
[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
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------


> 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)

Mime
View raw message