0

spring-data-neo4j アーティファクトは、リソースをフェッチするときに、tinkerpop ドメインへのアクセス拒否の警告を引き起こしています。

私の pom.xml ファイルには、次の関連する依存関係があります。

            <dependency>
                    <groupId>org.neo4j</groupId>
                    <artifactId>neo4j-cypher</artifactId>
                    <version>1.6.2</version>
            </dependency>

            <dependency>
                    <groupId>org.springframework.data</groupId>
                    <artifactId>spring-data-neo4j</artifactId>
                    <version>2.0.2.RELEASE</version>
            </dependency>

Maven を実行すると、次のエラーが表示されます (最初の数行を提供するだけです)。

Downloading: http://maven.springframework.org/milestone/org/springframework/data/spring-data-neo4j/2.0.2.RELEASE/spring-data-neo4j-2.0.2.RELEASE.pom
Downloading: http://go-build.local/nexus/content/groups/public/org/springframework/data/spring-data-neo4j/2.0.2.RELEASE/spring-data-neo4j-2.0.2.RELEASE.pom
Downloaded: http://go-build.local/nexus/content/groups/public/org/springframework/data/spring-data-neo4j/2.0.2.RELEASE/spring-data-neo4j-2.0.2.RELEASE.pom (8 KB at 17.5 KB/sec)
Downloading: http://maven.springframework.org/milestone/org/springframework/data/spring-data-neo4j-parent/2.0.2.RELEASE/spring-data-neo4j-parent-2.0.2.RELEASE.pom
Downloading: http://go-build.local/nexus/content/groups/public/org/springframework/data/spring-data-neo4j-parent/2.0.2.RELEASE/spring-data-neo4j-parent-2.0.2.RELEASE.pom
Downloaded: http://go-build.local/nexus/content/groups/public/org/springframework/data/spring-data-neo4j-parent/2.0.2.RELEASE/spring-data-neo4j-parent-2.0.2.RELEASE.pom (27 KB at 42.2 KB/sec)
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-beans/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-beans/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-beans/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-beans:3.0.8.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-parent:3.0.8.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-core/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-core:3.0.8.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-core/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-asm:3.0.8.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.0.8.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-beans:3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-parent:3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-core/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-core:3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-core/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-asm:3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.1.0-SPR7420.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-beans:3.1.0.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-parent:3.1.0.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-parent/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-core/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-core:3.1.0.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-core/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-asm:3.1.0.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-asm/3.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloading: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.1.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework:spring-beans:3.1.1.BUILD-SNAPSHOT/maven-metadata.xml from/to tinkerpop-repository (http://tinkerpop.com/maven2): Access denied to: http://tinkerpop.com/maven2/org/springframework/spring-beans/3.1.1.BUILD-SNAPSHOT/maven-metadata.xml

などなど

私は次のような運の悪いいくつかのことを試しました:

  • spring-data-neo4j pom にリストされている 3 つの tinkerpop アイテムの除外を依存関係に追加する
  • 要求された Spring ライブラリの依存関係を追加する (例: spring-beans、spring-tx など)
  • springframework.org のリポジトリを追加する

この問題をデバッグするために neo4j または springsource のリポジトリへの参照を直接含めようとした場合を除き、pom ファイルまたは Maven 設定のいずれにもリポジトリ (tinkerpop を含む) への参照はありません。

以下は、同じ動作を示す pom.xml および settings.xml ファイルの削除されたバージョンです。

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/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.test</groupId>
    <artifactId>example</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>war</packaging>

    <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
           <dependency>
                    <groupId>org.springframework.data</groupId>
                    <artifactId>spring-data-neo4j</artifactId>
                    <version>2.0.2.RELEASE</version>
            </dependency>
    </dependencies>

</project>

settings.xml

<settings>
   <localRepository>/Users/ian/.m2/repository</localRepository>
</settings>
4

2 に答える 2

2

すべてのリポジトリにミラーを追加するだけで、lib pom で指定されたリポジトリにアクセスできなくなります。

<mirror>
  <id>all</id>
  <name>all</name>
  <url>http://repo.maven.apache.org/maven2</url>
  <mirrorOf>*</mirrorOf>
</mirror>
于 2013-01-10T18:29:24.120 に答える