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

Michael Osipov commented on MSOURCES-143:
-----------------------------------------

I cannot reproduce with:
{noformat}
$ mvn -v
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /usr/local/share/java/maven
Java version: 1.8.0_372, vendor: OpenJDK BSD Porting Team, runtime: 
/usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.4-stable", arch: "amd64", family: "unix"
{noformat}
Output:
{noformat}
osipovmi@deblndw011x:/tmp/commons-cli ((08f8c50...))
$ ll target/
total 368
drwxr-xr-x  2 osipovmi  wheel    512 2023-08-16 08:11 antrun/
drwxr-xr-x  3 osipovmi  wheel    512 2023-08-16 08:11 apidocs/
drwxr-xr-x  4 osipovmi  wheel    512 2023-08-16 08:11 classes/
-rw-r--r--  1 osipovmi  wheel   2951 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT-bom.json
-rw-r--r--  1 osipovmi  wheel   2572 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT-bom.xml
-rw-r--r--  1 osipovmi  wheel  62774 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT-sources.jar
-rw-r--r--  1 osipovmi  wheel  61618 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT-test-sources.jar
-rw-r--r--  1 osipovmi  wheel  90151 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT-tests.jar
-rw-r--r--  1 osipovmi  wheel  58139 2023-08-16 08:12 
commons-cli-1.6.0-SNAPSHOT.jar
drwxr-xr-x  3 osipovmi  wheel    512 2023-08-16 08:11 generated-sources/
drwxr-xr-x  3 osipovmi  wheel    512 2023-08-16 08:11 generated-test-sources/
-rw-r--r--  1 osipovmi  wheel  29852 2023-08-16 08:12 jacoco.exec
drwxr-xr-x  2 osipovmi  wheel    512 2023-08-16 08:12 maven-archiver/
drwxr-xr-x  3 osipovmi  wheel    512 2023-08-16 08:11 maven-status/
drwxr-xr-x  2 osipovmi  wheel    512 2023-08-16 08:11 osgi/
-rw-r--r--  1 osipovmi  wheel   5885 2023-08-16 08:11 rat.txt
drwxr-xr-x  2 osipovmi  wheel   3584 2023-08-16 08:12 surefire-reports/
drwxr-xr-x  4 osipovmi  wheel    512 2023-08-16 08:11 test-classes/
{noformat}

> Can't create a source and test jar in Commons using commons-parent
> ------------------------------------------------------------------
>
>                 Key: MSOURCES-143
>                 URL: https://issues.apache.org/jira/browse/MSOURCES-143
>             Project: Maven Source Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> Steps to reproduce:
> # git clone https://gitbox.apache.org/repos/asf/commons-parent.git
> # cd commons-parent
> # git checkout 8d886ce8382f7a79f06d51a3afc386b8a37d0473
> # mvn clean install
> # cd ..
> # git clone https://gitbox.apache.org/repos/asf/commons-cli.git
> # cd commons-cli
> # git checkout 08f8c5034a8492be6db65b2086341c292489ee53
> # 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]



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

Reply via email to