Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing configuration for publishing to maven. #116

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

baldawar
Copy link
Collaborator

This stopped working after the latest maven-source-plugin version bump

Description of changes:

This change was necessary to make 1.4.0 published to maven.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This stopped working after the latest maven-source-plugin version bump
@baldawar
Copy link
Collaborator Author

Before fixing this, was seeing following error


[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ event-ruler ---
[INFO] 
[INFO] >>> maven-source-plugin:3.3.0:jar (attach-sources) > generate-sources @ event-ruler >>>
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.3.0:check (validate) @ event-ruler ---
[INFO] Starting audit...
Audit done.
[INFO] You have 0 Checkstyle violations.
[INFO] 
[INFO] <<< maven-source-plugin:3.3.0:jar (attach-sources) < generate-sources @ event-ruler <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.3.0:jar (attach-sources) @ event-ruler ---
[INFO] 
[INFO] --- maven-source-plugin:3.3.0:jar-no-fork (attach-sources) @ event-ruler ---
[ERROR] We have duplicated artifacts attached.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  55.144 s
[INFO] Finished at: 2023-10-10T19:21:53-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.0:jar-no-fork (attach-sources) on project event-ruler: 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]
[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

@jonessha jonessha merged commit a310d04 into main Oct 11, 2023
3 checks passed
@jonessha jonessha deleted the fix-mvn-deploy branch October 11, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants