Apache Archiva 2.2.0网络代理似乎无法正常工作 [英] Apache Archiva 2.2.0 Network Proxy does not appear to be working
问题描述
我一直在尝试使用Archiva为我们的公司建立企业存储库.尽管安装非常简单,但我现在仍然无法解决Archiva无法通过我们的公司代理与中央存储库联系的问题.
I have been trying to set up an Enterprise repository for our company using Archiva. While the installation was quite simple, I am now stuck at issue where the Archiva could not reach out to the Central Repository via our corporate proxy.
我执行了以下操作来设置代理(下面的屏幕截图)
I did the following to setup the Proxy (Screen shots below)
- 通过Apache UI添加了网络代理.
- 更新了ProxyConnector.
- 更新了中央存储库的配置
我仍然看到远程检查失败.
I still see the Remote Check fails.
有什么见解吗?
我仔细检查了Proxy的配置,并使用了与nexus SonaType相同的配置,并且在那里工作正常.
I did double check the Proxy configuration and also used the same configuration with nexus SonaType and it works fine there.
我还确保了NetworkProxy在archiva.xml文件中.
I also made sure the NetworkProxy is in the archiva.xml file.
更新时间:2015年6月16日
Updated: 06/16/2015
我更新了配置,以使用 https://repo.maven.apache.org/maven2,并且还尝试将https和https用作我们的网络代理.
I updated the configuration to use https://repo.maven.apache.org/maven2 and also tried to use https and https for our network proxy.
我注意到的另一件事是,即使已配置,代理连接器"设置也会显示网络代理:无". (下面的屏幕截图)
Another thing I've noticed is that the Proxy Connector settings show "Network proxy : None" even though it is configured. (screen shots below)
推荐答案
Apache Archiva 2.2.1发行版IMHO具有与UI有关的各种错误/问题.如果UI呈现的设置与该配置文件中的设置相似/匹配,请检查/conf/archiva.xml.
我遇到了Web接口未显示任何警告/错误,但配置未更新的情况.
Apache Archiva 2.2.1 release IMHO has various bugs/issues regarding the UI. Check /conf/archiva.xml if the settings presented by the UI resemble/match the settings in that config file.
I encountered that the Web-Interface does not show any warnings/errors, but still the config is not updated.
此外,对于正确配置的设置,UI还会显示错误的值.弹出窗口代理连接器设置"就是一个示例.即使正确配置了一个,它也将始终显示网络代理:无".为错误投票-> https://issues.apache.org/jira/browse/MRM-1920
Furthermore the UI shows wrong values for correctly configured settings. The popup "Proxy connector settings" is one example. It will always show "Network Proxy: none", even if one is correctly configured. Vote for the bug --> https://issues.apache.org/jira/browse/MRM-1920
这篇关于Apache Archiva 2.2.0网络代理似乎无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!