최근 Archiva에서 Sonatype Nexus로 이전했습니다.Nexus : 이슈를 찾을 수 없습니다.
타사 저장소의 Jars를 사용하려고하는데 Nexus가 로컬 저장소에 캐시하지 않습니다.
이 섹션의 답변을 검색 한 결과 질문에 대한 답변을 찾을 수 없습니다.
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://THE_URL:8080/nexus/content/groups/public</url>
</mirror>
</mirrors>
<servers>
<server>
<id>admin</id>
<username>user</username>
<password>password</password>
</server>
</servers>
<profiles>
<profile>
<id>nexus</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
나는 또한 내가 사용하는 모든 제 3 자 저장소에 대한 프록시 저장소를 만들었습니다, 그리고 다음은
내가 Settings.XML이 사용하고... 내가 무슨 짓을 NEXUS PUBLIC GROUP에 추가되었습니다.
다음, 나는 명령을 실행했습니다
mvn clean install
을 다음과 같은 오류 있어요 :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building shlang 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://THE_URL:8080/nexus/content/groups/public/com/shadow/shadow/1/shadow-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.341s
[INFO] Finished at: Sun Jun 30 11:59:42 IDT 2013
[INFO] Final Memory: 6M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project shlang: Could not resolve dependencies for project com.shadow:shlang:jar:1.0-SNAPSHOT: Failed to collect dependencies for [couchbase:couchbase-client:jar:1.1.5 (compile), com.google.code.gson:gson:pom:2.2.2 (compile), org.json:json:jar:20090211 (compile), net.sf.json-lib:json-lib:jar:jdk15:2.4 (compile), jline:jline:jar:2.10 (compile), commons-validator:commons-validator:jar:1.4.0 (compile), spy:spymemcached:jar:2.8.1 (compile), com.shadow:util:jar:1.0.1 (compile), com.shadow:monkey_schoolyard:jar:1.0.0 (compile)]: Failed to read artifact descriptor for com.shadow:util:jar:1.0.1: Could not find artifact com.shadow:shadow:pom:1 in nexus (http://THE_URL: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
지역의 repo의 결과는 제 3 자 중 하나를 포함하지 않는다는 것입니다을 항아리가 있어야합니다.
무엇이 여기에 있습니까?
"공개"리포지토리 그룹을 "*"의 미러로 구성했습니다. 이는 모든 Maven 아티팩트에 대한 goto URL임을 의미합니다. 검색하려는 모든 아티팩트를 해당 그룹 URL에서 가져올 수 있습니까? 나는 추측하고있다. –
Maven Central에없는 이슈 'couchbase-client'에 대한 저장소가 누락 된 것으로 보입니다. 따라서 공개 저장소의 구성을 변경해야합니다. 즉 위의 종속성을 포함하는 저장소를 추가해야합니다. – khmarbaise
[Maven은 (는) 종속성을 해결할 수 없습니다. 이슈를 해결할 수 없습니다] (http://stackoverflow.com/questions/4650460/maven-could-not-resolve-dependencies-artifacts-could-not-be-resolved) – naXa