Skip to content

Add requireExplicitDependencies to copy and unpack - #1793

Open
slachiewicz wants to merge 2 commits into
apache:masterfrom
slachiewicz:agent/require-explicit-dependencies
Open

slachiewicz wants to merge 2 commits into
apache:masterfrom
slachiewicz:agent/require-explicit-dependencies

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Adds requireExplicitDependencies to copy and unpack. When set, the goal fails before resolving anything if an artifactItem or <artifact> is not declared as a dependency of the project, so Maven orders the reactor correctly. An item matches a declared dependency on groupId, artifactId, extension and classifier, or a pom-typed declaration of the same groupId and artifactId; an explicit or resolved version must equal the declared one or fall inside its range. The check does not apply when the goal is invoked from the command line.

Fixes #1542


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

@slachiewicz slachiewicz added the enhancement New feature or request label Nov 14, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 14, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to only allow explicit dependencies in unpack goal

1 participant