apache / apache/maven-source-plugin
[MSOURCES-150] Skip creation of sources jar when sources are empty
- Dominant language
- Java
- Stars
- 37
- Forks
- 38
- Avg merge
- 18h 47m
- Merged PRs (30d)
- 5
Description
**[Peter De Maeyer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=peterdm)** opened **[MSOURCES-150](https://issues.apache.org/jira/browse/MSOURCES-150?redirect=false)** 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.