Skip to content

Fix maven-gpg-plugin incorrectly declared as compile dependency#19

Open
micke-a wants to merge 1 commit intogetbrevo:mainfrom
micke-a:remove-mvn-pgp-plugin-lib-dependency
Open

Fix maven-gpg-plugin incorrectly declared as compile dependency#19
micke-a wants to merge 1 commit intogetbrevo:mainfrom
micke-a:remove-mvn-pgp-plugin-lib-dependency

Conversation

@micke-a
Copy link
Copy Markdown

@micke-a micke-a commented Apr 18, 2026

Summary

  • maven-gpg-plugin was accidentally added to the <dependencies> section with no scope (defaulting to compile), causing it and its transitive dependencies (org.apache.maven.*, org.sonatype.sisu.*, org.apache.maven.shared.*) to leak to all consumers of this library
  • Consumers were forced to add manual exclude blocks to work around this
  • Fix removes the misplaced <dependency> entry — the plugin is already correctly declared in <build><plugins> where it belongs

Test plan

  • Verify mvn dependency:tree no longer includes maven-gpg-plugin or its transitive deps in the published POM
  • Confirm consumers can use the library without needing exclude blocks

🤖 Generated with Claude Code

…dentally included as a normal dependency.

This causes all users of this library to pull in that and its transitive dependencies which is undesired, effectively forcing all users to add manual exclusions.
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