0

Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800) Java(TM) SE 运行时环境 (build 1.7.0_13-b20)

(构建 2.0 快照)如何重现: https ://gist.github.com/anonymous/6118671

[错误] 无法在项目 neo4j-server-advanced 上执行目标:无法解析项目 org.neo4j.app:neo4j-server-advanced:jar:2.0-SNAPSHOT 的依赖项:无法传输工件 org.neo4j.app:neo4j -server:jar:tests:2.0-SNAPSHOT from/to tinkerpop-repository ( http://tinkerpop.com/maven2 ): 拒绝访问: http://tinkerpop.com/maven2/org/neo4j/app/neo4j- server/2.0-SNAPSHOT/neo4j-server-2.0-SNAPSHOT-tests.jar,原因短语:禁止。-> [帮助 1]

有任何想法吗?

4

2 回答 2

1

您很可能不会在 tinkerpop maven 存储库中找到该 jar。

这是一个包含 Neo4j 快照存储库正确位置的 settings.xml 文件:http: //dist.neo4j.org/settings.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>neo4j</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>neo4j-release-repository</id>
                    <name>Neo4j Maven 2 release repository</name>
                    <url>http://m2.neo4j.org/content/repositories/releases</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>neo4j-snapshot-repository</id>
                    <name>Neo4j Maven 2 snapshot repository</name>
                    <url>http://m2.neo4j.org/content/repositories/snapshots</url>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>
</settings>

看一看,里面的神器显得有些陈旧。因此,要获得新版本,您可以先在社区/服务器中的模块上执行mvn install

于 2013-07-31T12:32:46.760 回答
0

我修复了它

% perl -p -i.bak -e 's{tinkerpop.com}{repo.maven.apache.org}g' 高级/服务器高级/pom.xml

% perl -p -i.bak -e 's{tinkerpop.com}{repo.maven.apache.org}g' 企业/服务器企业/pom.xml

于 2013-07-31T18:11:32.613 回答