构建错误访问被拒绝neo4j-server-2.0-SNAPSHOT-tests.jar

时间:2013-07-31 01:43:42

标签: maven neo4j

Apache Maven 3.0.4(r1232337; 2012-01-17 00:44:56-0800) Java(TM)SE运行时环境(版本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,   ReasonPhrase:禁止。 - > [帮助1]

任何想法?

2 个答案:

答案 0 :(得分:1)

你可能不会在tinkerpop maven存储库中找到那个jar。

这是一个settings.xml文件,其中包含Neo4j快照存储库的正确位置: 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>

看一下,工件in there看起来有点过时了。 因此,要获得一个新版本,您可以先在社区/服务器上的模块上执行 mvn install

答案 1 :(得分:0)

我通过

修复了它

%perl -p -i.bak -e的{tinkerpop.com} {repo.maven.apache.org} g'advanced / server-advanced / pom.xml

%perl -p -i.bak -e的{tinkerpop.com} {repo.maven.apache.org} g'enterprise / server-enterprise / pom.xml