Ignore provided scoped dependencies from maven-dependency-plugin #875
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This came up in an offline discussion with @burkedavison as part of #815.
The
downstream / dependencies (11, java-spanner)
in the PR was failing with the following error:However, this dependency is intentionally scoped as
provided
making this failure a false positive.Potential Solution: Set the maven-dependency-plugin's
ignoreNonCompile
parameter totrue
(https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html#ignoreNonCompile) to ignoreprovided
scoped dependencies whenmvn dependency:analyze
is called. The configuration change will likely be at:java-shared-config/java-shared-config/pom.xml
Lines 144 to 158 in 3c3c630
cc/ @suztomo
The text was updated successfully, but these errors were encountered: