apache / apache/maven-source-plugin

[MSOURCES-143] Can't create a source and test jar in Commons using commons-parent

Open
#205 29 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
37
Forks
38
Avg merge
18h 47m
Merged PRs (30d)
5

Description

**[Gary D. Gregory](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=garydgregory)** opened **[MSOURCES-143](https://issues.apache.org/jira/browse/MSOURCES-143?redirect=false)** and commented

Steps to reproduce:
1. git clone https://gitbox.apache.org/repos/asf/commons-parent.git
2. cd commons-parent
3. git checkout 8d886ce8382f7a79f06d51a3afc386b8a37d0473
4. mvn clean install
5. cd ..
6. git clone https://gitbox.apache.org/repos/asf/commons-cli.git
7. cd commons-cli
8. git checkout 08f8c5034a8492be6db65b2086341c292489ee53
9. mvn clean package

[INFO] --- source:3.3.0:jar-no-fork (create-source-jar) @ commons-cli ---
[ERROR] We have duplicated artifacts attached.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.233 s
[INFO] Finished at: 2023-08-15T15:39:45-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.0:jar-no-fork (create-source-jar) on project commons-cli: Presumably you have configured maven-source-plugn to execute twice times in your build. You have to configure a classifier for at least on of them. -> [Help 1]

---

**Affects:** 3.3.0

**Issue Links:**
- [MSOURCES-121](https://issues.apache.org/jira/browse/MSOURCES-121) Check for duplicated addition of the same file
(_**"is caused by"**_)
- [MSOURCES-140](https://issues.apache.org/jira/browse/MSOURCES-140) Build fails when using install deploy

4 votes, 9 watchers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.