首页 > 解决方案 > Maven 代理 - 未经代理授权

问题描述

如何在eclipse中为maven设置代理?

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

标签: maven

解决方案


您需要将代理添加到settings.xml

https://maven.apache.org/settings.html


推荐阅读