- Notifications
You must be signed in to change notification settings - Fork17
Open
Description
This came up in an offline discussion with@burkedavison as part of#815.
Thedownstream / dependencies (11, java-spanner) in the PR was failing with the following error:
[INFO] --- maven-dependency-plugin:3.5.0:analyze (default-cli) @ google-cloud-spanner ---Error: Used undeclared dependencies found:Error: org.graalvm.sdk:nativeimage:jar:24.0.1:providedHowever, this dependency is intentionally scoped asprovided making this failure a false positive.
Potential Solution: Set the maven-dependency-plugin'signoreNonCompile 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 in3c3c630
| <configuration> | |
| <ignoredUnusedDeclaredDependencies> | |
| <ignoredUnusedDeclaredDependency>javax.annotation:javax.annotation-api | |
| </ignoredUnusedDeclaredDependency> | |
| </ignoredUnusedDeclaredDependencies> | |
| <!-- TODO: Try to remove these exclusions by updating handwritten libs--> | |
| <ignoredNonTestScopedDependencies> | |
| <ignoredNonTestScopedDependency>io.grpc:* | |
| </ignoredNonTestScopedDependency> | |
| <ignoredNonTestScopedDependency>com.google.protobuf:* | |
| </ignoredNonTestScopedDependency> | |
| <ignoredNonTestScopedDependency>com.google.api.grpc:* | |
| </ignoredNonTestScopedDependency> | |
| </ignoredNonTestScopedDependencies> | |
| </configuration> |
cc/@suztomo