Skip to content

Fix provided scope warnings for Maven plugin dependencies - #526

Merged
petrberan merged 1 commit into
shrinkwrap:masterfrom
xjusko:fix-provided-scope-warnings
May 28, 2026
Merged

petrberan merged 1 commit into
shrinkwrap:masterfrom
xjusko:fix-provided-scope-warnings

Conversation

@xjusko

@xjusko xjusko commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Set Maven API dependencies to provided scope in the maven-plugin module, as they are supplied by the Maven runtime when executing the plugin.

fixes #520

Set Maven API dependencies to provided scope in the maven-plugin module,
as they are supplied by the Maven runtime when executing the plugin.
@xjusko

xjusko commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

I am not 100% sure we want to go through with this change. It creates clutter in the code; however, in the past, we encountered some issues with dependencies where the provided scope was missing.

@petrberan

Copy link
Copy Markdown
Member

Do we use all of those dependencies?

@xjusko

xjusko commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

@petrberan The plugin code uses maven-plugin-api, maven-core, and maven-model directly via imports. The remaining 7 are transitive from shrinkwrap modules.

@petrberan petrberan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petrberan
petrberan merged commit b37f294 into shrinkwrap:master May 28, 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.

Some dependencies of Maven Plugins are expected to be in provided scope.

2 participants