Google AdSense (text)

hidden logo stop

Moving

거지 같은 이글루스 광고노출 정책이 싫어서,
새 보금자리(http://blog.leocat.kr/)로 이사감.

[Spring, Hadoop] spring-data-hadoop jdo2-api dependency 문제 Computer & Program

Spring hadoop을 쓰기 위해 maven dependency를 추가했다. 헌데.. 안된다.

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-hadoop</artifactId>
    <version>1.0.0.M1</version>
</dependency>


$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building clue-analysis-click-flow 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.hadoop:hadoop-core:jar:0.20.1 is missing, no dependency information available
[WARNING] Could not transfer metadata asm:asm/maven-metadata.xml from/to local.repository (file:../../local.repository/trunk): No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories WagonRepositoryConnectorFactory
Downloading: http://[nexus #1 IP]:8080/nexus/content/groups/public/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
Downloading: http://[nexus #2 IP]:8080/nexus/content/groups/public/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.pom
[WARNING] The POM for javax.jdo:jdo2-api:jar:2.3-ec is missing, no dependency information available
Downloading: http://[nexus #1 IP]:8080/nexus/content/groups/public/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
Downloading: http://[nexus #2 IP]:8080/nexus/content/groups/public/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.426s
[INFO] Finished at: Tue Apr 10 09:12:28 KST 2012
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project clue-analysis-click-flow: Could not resolve dependencies for project clue.analysis:clue-analysis-click-flow:jar:0.0.1-SNAPSHOT: Could not find artifact javax.jdo:jdo2-api:jar:2.3-ec in platform-dev-team (http://[nexus #1 IP]:8080/nexus/content/groups/public/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


javax.jdo:jdo2-api dependency를 찾지 못 하는거 같은데 버전을 보니 2.3-ec 버전이다. 어떤 maven repository에도 jdo2-api는 2.3-eb 버전은 있는데 2.3-ec 버전은 없다. TㅅT 난 낚인건가?? 나같은 놈이 또 있겠지 하는 생각에 검색을 해보니 역시나 있다.

요게를 보면 여러 maven repository가 있는데 이 주소를 추가해 주면 된다. 전부가 필요하지는 않고, datanucleus의 repository(http://www.datanucleus.org/downloads/maven2/)만 있으면 된다. 이 주소를 nexus에 proxy로 추가해 주거나 프로젝트 pom.xml 파일에 넣어주면 된다.

<repositories>
    <repository>
        <id>datanucleus</id>
        <name>datanucleus</name>
        <url>http://www.datanucleus.org/downloads/maven2/</url>
    </repository>
</repositories>

덧글

댓글 입력 영역

Google AdSense (text/image)