versions:use-releases
을 사용하려고하면 내 릴리스 리포지토리가 "사용 안 함"으로 표시됩니다. 즉, 스냅 숏 종속성이 릴리스로 해결되지 않음을 의미합니다. 저장소가 사용 중지 된 것으로 간주되는 이유를 이해할 수 없습니다.Maven 버전 플러그인 업데이트 확인 건너 뛰기
[DEBUG] (f) remoteArtifactRepositories = [ id: snapshots
url: http://maven.live.hostname.net/content/repositories/snapshots/
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: company-nexus
url: http://maven.live.hostname.net/content/groups/public/
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[...]
[DEBUG] Looking for a release of promotion-test-central:promotion-test-central:jar:1.6.0-SNAPSHOT
[INFO] artifact promotion-test-central:promotion-test-central: checking for updates from snapshots
[DEBUG] Reading resolution-state from: /home/tester/.m2/repository/promotion-test-central/promotion-test-central/resolver-status.properties
[DEBUG] Writing resolution-state to: /home/tester/.m2/repository/promotion-test-central/promotion-test-central/resolver-status.properties
[DEBUG] Skipping update check for artifact promotion-test-central:promotion-test-central (/home/tester/.m2/repository/promotion-test-central/promotion-test-central/maven-metadata-company-nexus.xml) from disabled repository company-nexus (http://hostname/content/groups/public/)
내가 우리 넥서스 인스턴스에 central
에 요청을 반영하고, 또한 너무 글로벌 스냅 샷 저장소를 지정하는 설치 프로그램을 실행 : 여기
<mirrors>
<mirror>
<id>mendeley-nexus</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.live.chonp.net/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>default</id>
<repositories>
<repository>
<id>snapshots</id>
<url>http://maven.live.chonp.net/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
해당 종속성의 릴리스 및 스냅 샷 버전이 있으며 저장소는 다른 모든 측면에서 예상대로 정확하게 작동합니다.
@ZnArK - XML 구문 강조는 어떻게 수행합니까? –
xml에 대한 주석을 추가해야합니다. 그래서 prettify를 사용합니다. 다음은 README http://google-code-prettify.googlecode.com/svn/trunk/README입니다. html 이것은 위대한 리소스입니다. http://meta.stackexchange.com/a/75019/187632 – ZnArK
위와 똑같은 문제가있어이 답변이 완벽하게 작동했습니다. –