2
回答
Neo4j 构建失败 WorkSync.java:[53,63] 不兼容的类型
终于搞明白,存储TCO原来是这样算的>>>   

下载 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

这是啥原因呢?

举报
红薯
发帖于2周前 2回/22阅
顶部