maven - 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
解决方案
您需要将代理添加到settings.xml
:
推荐阅读
- python - python - PYTHONPYCACHEPREFIX 或 PYTHONDONTWRITEBYTECODE 编译 - 不在环境中
- python - Discord.py 删除 DMChannel
- python - 找不到满足硒要求的版本我该如何解决这个问题?
- gradle - 如何在最后的 afterEvaluate 中应用一些代码
- c# - 如果 numericupdown 大于库存中的可用库存,如何添加警报
- linker - 有什么办法可以将程序头移到 ELF 文件的末尾?
- pine-script - 使用 barsince 的 Pine 脚本 v4 多个条件
- c# - “ 表达式表示一个‘变量’,其中需要一个‘方法组’ “这是什么意思?
- html - 在没有额外 CSS 的情况下对齐列表项(引导程序)
- reactjs - 检查 ForwardRef 的渲染方法