Neo4j 说我可以通过 Maven 安装 Neo4j,方法是将它添加到我的构建中:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>1.8.1</version>
</dependency>
但是我需要构建吗?如果是这样,我应该是什么pom.xml
样子?
我试过这个:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.webcom.app</groupId>
<artifactId>webcom</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>webcom</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>1.9.M04</version>
</dependency>
</dependencies>
</project>
但后来我得到了:
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] /opt/local/java/sun6/../lib/tools.jar
我已经安装sun-jdk6-6.0.26
并设置JAVA_HOME
为/opt/local/java/sun6
.