Open mpeddada1 opened 3 months ago
I agree with excluding the dependency in the plugin configuration.
@mpeddada1 do we still need to eet the maven-dependency-plugin's ignoreNonCompile
parameter to true
after merging https://github.com/googleapis/sdk-platform-java/pull/2706 and ignore the dependency in spanner?
This came up in an offline discussion with @burkedavison as part of https://github.com/googleapis/java-shared-config/pull/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:https://github.com/googleapis/java-shared-config/blob/3c3c6307ea88dc56f5901a95c295d1b2d53a3559/java-shared-config/pom.xml#L144-L158
cc/ @suztomo