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

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

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-source-plugin#197|https://github.com/apache/maven-source-plugin/issues/197].
 Please visit the GitHub issue to view further activity, add comments, or 
subscribe to receive notifications.

> Skip creation of sources jar when sources are empty
> ---------------------------------------------------
>
>                 Key: MSOURCES-150
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-150
>             Project: Maven Source Plugin (Moved to GitHub Issues)
>          Issue Type: Improvement
>    Affects Versions: 3.3.0
>            Reporter: Peter De Maeyer
>            Priority: Major
>
> The {{maven-jar-plugin}} can be configured with {{skipIfEmpty}} to skip the 
> creation of a jar when the main sources are empty. This is useful for example 
> when a project only has test sources.
> However, even if the sources are empty, the {{maven-source-plugin}} _always_ 
> creates a sources jar, even if there is no jar.
> For symmetry reasons, it would therefore be useful if the 
> {{maven-source-plugin}} also had an option {{skipIfEmpty}}.
> Also consider the same for test sources. Although it seems that for test 
> sources it already works like this by default.



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

Reply via email to