Skip to content

[MSOURCES-150] Skip creation of sources jar when sources are empty #197

Description

@jira-importer

Peter De Maeyer opened MSOURCES-150 and commented

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.


Affects: 3.3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions