Neo4j 1.8 M02:“无法找到符号”的Maven编译错误

时间:2012-05-22 22:15:17

标签: maven maven-3 neo4j

我刚从2012年5月22日下载neo4j-1.8-M02源文件,发现pom.xml与2周前不同。现在,我收到了以下错误。

任何建议都将不胜感激。 J.T。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:2.3.2:compile (compile-neo4j-kernel) on project neo4j-kernel: Compilation failure: Compilation failure:
[ERROR] /home/pt/Downloads/neo4j-community-081282a/kernel/src/main/java/org/neo4j/helpers/Specifications.java:[54,15] cannot find symbol
[ERROR] symbol  : method and(java.lang.Iterable<java.lang.Object>)
[ERROR] location: class org.neo4j.helpers.Specifications
[ERROR] /home/pt/Downloads/neo4j-community-081282a/kernel/src/main/java/org/neo4j/helpers/Specifications.java:[64,15] cannot find symbol

的pom.xml

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <executions>
      <execution>
        <id>default-compile</id>
        <configuration>
          <compilerArgument>-proc:none</compilerArgument>
          <includes>
            <include>org/neo4j/kernel/impl/annotations/**</include>
          </includes>
        </configuration>
      </execution>
      <execution>
        <id>compile-neo4j-kernel</id>
        <phase>compile</phase>
        <goals>
          <goal>compile</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

...

import org.neo4j.helpers.Service;


              <group>
                <title>Helpers</title>
                <packages>org.neo4j.helpers:org.neo4j.helpers.*</packages>
              </group

1 个答案:

答案 0 :(得分:1)

您是使用OpenJDK构建的吗?我们在那里遇到OpenJDK错误的问题,所以请尝试OracleJDK进行编译。那会更好吗?