hoonick

1.公司的网络走的是代理,那么如何设置maven下载jar包时也走代理呢.

根据百度出来的两篇文章 设置了一下,但是还是报错. 

Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: 
Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): 
Not authorized by proxy , ReasonPhrase:Proxy Authentication Required. -> [Help 1]

 设置过程是按这篇博客操作的:  Maven代理设置

这个过程应该不存在什么问题,好多地方都是这么说,但在我还是无法下载jar包.原因是需要往maven中添加一个插件包

网上的描述如下:

It is probably an NTLM proxy? If it is:

Download the wagon-http-lightweight-2.2.jar from http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-http-lightweight/2.2/wagon-http-lightweight-2.2.jar

Copy the wagon-http-lightweight-2.2.jar to %M2_HOME%/lib/ext folder.

添加jar包后运行正常! 

 

分类:

技术点:

相关文章:

  • 2021-11-12
  • 2021-12-15
  • 2021-04-22
  • 2022-01-15
  • 2021-12-19
  • 2021-11-20
  • 2021-11-20
猜你喜欢
  • 2022-01-08
  • 2021-08-03
  • 2021-12-04
  • 2021-04-02
  • 2022-01-17
  • 2021-11-30
相关资源
相似解决方案