protobuf jar 编译期间的 Maven 错误

Maven errors during protobuf jar compiling

编译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]

解决方案是……

将 OpenJDK 更改为 Oracle Java。