Oliver Lietz created SLING-11944:
------------------------------------

             Summary: Misconfigured Maven Source Plugin breaks release build
                 Key: SLING-11944
                 URL: https://issues.apache.org/jira/browse/SLING-11944
             Project: Sling
          Issue Type: Bug
    Affects Versions: Parent 50
            Reporter: Oliver Lietz
            Assignee: Oliver Lietz
             Fix For: Parent 51


{noformat}
[INFO] [INFO] --- checkstyle:3.3.0:check (default) @ 
org.apache.sling.testing.paxexam ---
[INFO] [INFO] You have 0 Checkstyle violations.
[INFO] [INFO] 
[INFO] [INFO] <<< source:3.3.0:jar (attach-sources) < generate-sources @ 
org.apache.sling.testing.paxexam <<<
[INFO] [INFO] 
[INFO] [INFO] 
[INFO] [INFO] --- source:3.3.0:jar (attach-sources) @ 
org.apache.sling.testing.paxexam ---
[INFO] [INFO] Building jar: 
/[...]/org.apache.sling.testing.paxexam/target/checkout/target/org.apache.sling.testing.paxexam-4.0.0-sources.jar
[INFO] [INFO] 
[INFO] [INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ 
org.apache.sling.testing.paxexam ---
[INFO] [ERROR] We have duplicated artifacts attached.
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time:  18.823 s
[INFO] [INFO] Finished at: 2023-07-09T20:53:50+02:00
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-source-plugin:3.3.0:jar-no-fork (attach-sources) 
on project org.apache.sling.testing.paxexam: 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]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR] 
[INFO] [ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[INFO] [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.082 s
[INFO] Finished at: 2023-07-09T20:53:50+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:3.0.1:perform (default-cli) on 
project org.apache.sling.testing.paxexam: Maven execution failed, exit code: 1 
-> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}



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

Reply via email to