2013-06-09 2 views
2

Я создал Sonatype Nexus для кэширования репозитория.Прокси SVN Google на основе maven-хранилища в Sonatype Nexus

com.googlecode.htmleasy не разрешен maven. Получение ошибку

Неспособность найти com.googlecode.htmleasy: htmleasy: баночка: 0,7 в http://localhost:8081/nexus/content/groups/public кэшировалась в локальном хранилище, разрешение не будет повторная попытка до обновления интервала связующей прошло или обновления принудительный -> [Помощь 1]

htmleasy - это один артефакт, который находится внутри google-кода на основе maven-репо.

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

Но что я должен сделать так, чтобы, когда я имею в виду следующее артефакт на основе выше репо

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

получает решить мой мавена?

Мои настройки Maven 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.

(Если вы все еще не получить «разрешение будет не будет повторная попытка» ошибка из мавена, попробуйте позвонить Maven с «-U».)

+0

1) Я уже создал и добавил репозиторий прокси общественной группы. 2) Вызов команды mvn с -U ("mvn jetty: run -U") сделал трюк .... !!! Спасибо! Это сработало ! –

Смежные вопросы