Skip to content

build: attach sources and javadoc jars to release builds#22

Merged
marevol merged 1 commit into
masterfrom
build/attach-sources-javadoc-jars
Jun 11, 2026
Merged

build: attach sources and javadoc jars to release builds#22
marevol merged 1 commit into
masterfrom
build/attach-sources-javadoc-jars

Conversation

@marevol

@marevol marevol commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Release builds did not generate sources and javadoc jars because maven-source-plugin was missing and maven-javadoc-plugin had no jar goal execution. The super POM release-profile that used to handle this is no longer available in current Maven versions, so publishing to Maven Central fails validation during mvn release:perform.

Changes Made

  • Add maven-source-plugin 3.3.1 with an attach-sources execution (jar-no-fork goal)
  • Add an attach-javadocs execution (jar goal) to the existing maven-javadoc-plugin

Testing

  • Ran mvn package -DskipTests and confirmed that both *-sources.jar and *-javadoc.jar are generated under target/

Additional Notes

@marevol marevol merged commit f0f02c0 into master Jun 11, 2026
3 checks passed
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.

1 participant