因“mvn clean validate”而出现此错误。这个问题和https://github.com/googleapis/java-storage/issues/133一样吗?有人可以帮忙解决这个问题吗? 我没有更改 pom.xml。
Dependency convergence error for com.google.errorprone:error_prone_annotations:2.3.4 paths to dependency are:
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-io.grpc:grpc-netty-shaded:1.34.0
+-io.grpc:grpc-core:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-io.grpc:grpc-protobuf:1.34.0
+-io.grpc:grpc-protobuf-lite:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-io.grpc:grpc-protobuf:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-com.google.guava:guava:30.1.1-jre
+-com.google.errorprone:error_prone_annotations:2.5.1
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-io.grpc:grpc-stub:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-grpc:5.0-20210531.092806-178
+-io.grpc:grpc-api:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-files-gcs:5.0-20210531.093025-176
+-com.google.cloud.bigdataoss:gcs-connector:hadoop3-2.1.5
+-com.google.cloud.bigdataoss:gcsio:2.1.5
+-io.grpc:grpc-auth:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-files-gcs:5.0-20210531.093025-176
+-com.google.cloud.bigdataoss:gcs-connector:hadoop3-2.1.5
+-com.google.cloud.bigdataoss:gcsio:2.1.5
+-io.grpc:grpc-alts:1.34.0
+-io.grpc:grpc-grpclb:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-files-gcs:5.0-20210531.093025-176
+-com.google.cloud.bigdataoss:gcs-connector:hadoop3-2.1.5
+-com.google.cloud.bigdataoss:gcsio:2.1.5
+-io.grpc:grpc-alts:1.34.0
+-com.google.errorprone:error_prone_annotations:2.3.4
and
+-com.hazelcast:hazelcast-distribution:5.0-SNAPSHOT
+-com.hazelcast.jet:hazelcast-jet-files-gcs:5.0-20210531.093025-176
+-com.google.cloud.bigdataoss:gcs-connector:hadoop3-2.1.5
+-com.google.cloud.bigdataoss:gcsio:2.1.5
+-com.google.protobuf:protobuf-java-util:3.13.0
+-com.google.errorprone:error_prone_annotations:2.3.4
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability. See above detailed error message.
[错误] 无法在项目 hazelcast-distribution 上执行目标 org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-tools):一些 Enforcer 规则失败。查看上面解释规则失败原因的特定消息。 -> [帮助 1]
答案 0 :(得分:0)
您要么需要禁用 POM 中的 dependencyConvergence 检查,要么需要向 POM 的 <dependencyManagement>
部分添加一个条目,其中包含您要使用的 error_prone_annotations
版本。< /p>