无法从我的nexus服务器下载文物

时间:2014-05-22 14:52:45

标签: maven nexus

我已在内部网中使用https和apache代理设置了nexus服务器。 nexus UI工作正常。但是当我使用mvn命令在我的本地机器上测试它时

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=nl.iteye -DartifactId=App1

我收到此错误

[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/myuser/.m2/repository), nexus (https://machine.domain.org/nexus/content/groups/public/)] -> [Help 1]

有了这些警告

Downloading: https://machine.domain.org/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.3: Plugin org.apache.maven.plugins:maven-clean-plugin:2.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.3
Downloading: https://machine.domain.org/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom

这是我对maven的本地设置

<?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>https://machine.domain.org/nexus/content/groups/public/</url>
    </mirror>
  </mirrors>
</settings>

我在nexus日志中看到了这个

jvm 1    | 2014-05-22 15:43:53,687+0200 INFO  [qtp1476181708-44] admin org.apache.http.impl.execchain.RetryExec - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->http://repo1.maven.org:80: The target server failed to respond

我试着查看事情,但没有成功。 谢谢你的帮助!

0 个答案:

没有答案