在编译protobuf jar期间,执行mvn test
时出现以下错误:
[FATAL] Non-resolvable parent POM for com.google.protobuf:protobuf-java:2.5.0: Could not transfer artifact com.google:google:pom:1 from/to central (https://repo.maven.apache.org/maven2): java.lang.IllegalStateException and 'parent.relativePath' points at wrong local POM @ line 6, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.google.protobuf:protobuf-java:2.5.0 (/home/capo/bin/protobuf-2.5.0/java/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.google.protobuf:protobuf-java:2.5.0: Could not transfer artifact com.google:google:pom:1 from/to central (https://repo.maven.apache.org/maven2): java.lang.IllegalStateException and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2]
答案 0 :(得分:0)
解决方案是......
将OpenJDK更改为Oracle Java。