proxy - 除了代理之外,Maven "Failed to retrieve plugin descriptor"的任何其他原因

标签 proxy maven-3

我被告知其他帖子中的此错误是由于代理设置不正确造成的

但是我确实在 settings.xml 中正确设置了代理(我们没有用户/密码)

还有其他原因导致此 Maven 错误吗?

i.e.: 


  .m2>

<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.ours.net</host>
      <port>8080</port>
    </proxy>
  </proxies>
</settings>


 C:>mvn archetype:generate -DgroupId=com.mycompany
.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -Dinte
ractiveMode=false
[INFO] Scanning for projects...
Downloading: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-clean-plu
gin/2.5/maven-clean-plugin-2.5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on
e of its dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
Downloading: http://uk.maven.org/maven2/org/apache/maven/plugins/maven-install-p
lugin/2.4/maven-install-plugin-2.4.pom

etc

       [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://u
k.maven.org/maven2 was cached in the local repository, resolution will not be re
attempted until the update interval of UK has elapsed or updates are forced. Ori
ginal error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml fr
om/to UK (http://uk.maven.org/maven2): Not authorized by proxy , ReasonPhrase:Pr
oxy Authentication Required.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

最佳答案

虽然代理通常不需要用户/密码来进行 Maven 构建下载,但需要用户/密码。

关于proxy - 除了代理之外,Maven "Failed to retrieve plugin descriptor"的任何其他原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25455266/

相关文章:

java - 如何在 HTTP Proxy Servlet 中动态设置参数 targetURi

javascript - 带有代理和域\用户的 node.js http :password authorization

java - Maven项目构建失败

java - jetty+jersey servlet 映射不起作用

java - 充气城堡安全提供程序不会在 Java 11/12 下加载

java - 多模块构建人工解决方案与单独构建?

eclipse - Maven eclipse 插件,排除传递依赖

java - 在java代码中设置代理用户名和密码

android - 通过带有身份验证的代理的 OkHttp 请求失败

ssl - curl:(60)SSL证书问题:自签名证书