首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >protobuf jar编译过程中的Maven错误

protobuf jar编译过程中的Maven错误
EN

Stack Overflow用户
提问于 2017-03-12 05:59:49
回答 1查看 190关注 0票数 0

在编译protobuf jar的过程中,当执行mvn test时,我得到了以下错误:

代码语言:javascript
复制
[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]
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-12 06:00:48

解决方案是…

将OpenJDK更改为Oracle Java。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42741156

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档