2013-06-09 2 views
2

리포지토리 캐싱을 위해 Sonatype Nexus를 설정했습니다.프록시 SVN Sonatype Nexus의 Google 코드 기반 메이븐 저장소

maven이 com.googlecode.htmleasy를 해결하지 못했습니다. 오류를

실패를 얻기 com.googlecode.htmleasy를 찾을 수 : htmleasy : 항아리 : 0.7 http://localhost:8081/nexus/content/groups/public 로컬 저장소에 캐시 된 에서, 해상도는 경과 넥서스의 업데이트 간격 때까지 재 시도하거나 업데이트는되지 않습니다 강제 -> [도움말 1]

htmleasy는 Google 코드 기반 메이븐 레포에 앉아있는 하나의 아티팩트입니다.

<repository> 
     <id>htmleasy</id> 
     <url>http://htmleasy-maven.googlecode.com/svn/trunk/</url> 
    </repository> 

하지만 위의 repo에 따라 유물 다음 참조 할 때 내 받는다는에 의해

<dependency> 
     <groupId>com.googlecode.htmleasy</groupId> 
     <artifactId>htmleasy</artifactId> 
     <version>0.7</version> 
    </dependency> 

해결 가도록 (듯이) 어떻게해야합니까?

내 받는다는 설정 XML은 다음과 같은

<?xml version="1.0" encoding="UTF-8"?> 
<settings 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/settings-1.0.0.xsd"> 
    <mirrors> 
    <mirror> 
     <id>nexus</id> 
     <mirrorOf>*</mirrorOf> 
     <url>http://localhost:8081/nexus/content/groups/public</url> 
    </mirror> 
    </mirrors> 
    <proxies></proxies> 
    <servers></servers> 
    <pluginGroups></pluginGroups> 
    <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> 
    <activeProfile>nexus</activeProfile> 
    </activeProfiles> 
</settings> 

답변

3

Add a new proxy repository을 보이고 add it to your 'public' repository group하는 것을 잊지 마십시오.

(당신은 여전히 ​​"해상도가 더 재 시도 될 것"얻을 경우 받는다는에서 오류가와 받는다는를 호출하려고 '-U'.)

+0

1) 나는 이미 생성 및 공용 그룹에 프록시 저장소를 추가했다. 2) -U를 사용하여 mvn 명령을 호출하면 ("mvn jetty : run -U") 트릭을 수행했습니다 .... !!! 감사합니다. 그것은 효과가있다! –