You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2025/03/01 17:07:00 UTC

[jira] [Updated] (MSOURCES-150) Skip creation of sources jar when sources are empty

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

Peter De Maeyer updated MSOURCES-150:
-------------------------------------
    Summary: Skip creation of sources jar when sources are empty  (was: Skip creating of sources jar when artifact is empty)

> 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
>          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}}.



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