Repository navigation
Correct requireExplicitDependencies and overWriteFiles docs and edge cases - #1795
Merged
slachiewicz merged 3 commits intoNov 14, 2026
Merged
slachiewicz merged 3 commits into
slachiewicz merged 3 commits into
Conversation
…efore version lookup A versionless item that no dependency declares used to fail in the version lookup with "Unable to find artifact version" instead of the violation list. An item range no longer matches a declared version, because the goal resolves the range to the highest available version, which may not be the declared one.
With overWriteFiles=false a dangling symlink at the target path now counts as an existing file, so the archive entry is not written through it.
slachiewicz
marked this pull request as ready for review
November 14, 2026 12:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1793 and #1794 before 3.12.0 ships.
requireExplicitDependencies: a versionless item whose groupId and artifactId no dependency declares is reported as a violation instead of failing in the version lookup; a version range matches only when the declared range contains the item's version; the docs say what apomdeclaration really does (it adds the module's transitive dependencies and shows independency:tree; useprovidedscope and a*:*exclusion to avoid that) and describe the exemption by how the goal is invoked.overWriteFiles: the two examples that still described the old timestamp rule now say every existing file is kept; a dangling symlink at the target counts as existing; the javadoc says the first file wins when several entries map to the same path.Verified:
dependency:treewith aprovidedpom dependency and a*:*exclusion → onlyg:pomdep:pom:1.0:providedon Maven 3.9.16 and 3.10.0-rc-1To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following: