Neo4j 构建失败 WorkSync.java:[53,63] 不兼容的类型
下载 Neo4j 最新代码,切换到 3.2.3 分支(最新稳定版)。然后执行 mvn clean install 进行构建,构建失败,错误信息如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project neo4j-primitive-collections: Compilation failure
[ERROR] /Users/winterlau/neo4j/community/primitive-collections/src/main/java/org/neo4j/concurrent/WorkSync.java:[53,63] 不兼容的类型: 无法推断org.neo4j.concurrent.WorkSync.WorkUnit<>的类型参数
[ERROR] 原因: 推断类型不符合上限
[ERROR] 推断: org.neo4j.concurrent.Work<capture#1, 共 ?,capture#2, 共 ?>
[ERROR] 上限: org.neo4j.concurrent.Work<java.lang.Object,org.neo4j.concurrent.Work<capture#1, 共 ?,capture#2, 共 ?>>,org.neo4j.concurrent.Work<capture#1, 共 ?,capture#2, 共 ?>
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :neo4j-primitive-collections
这是啥原因呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更新compiler source target jdk为1.8
不折腾了,直接下载官方提供编译好的包