SonarQube 代理配置,棘手 [英] SonarQube Proxy Configuration, Tricky
问题描述
我无法获得适用于 SonarQube 4.0 的代理配置,以便我可以安装插件.
I cannot get the proxy configuration to work for SonarQube 4.0 so that I can install plugins.
当我打开 http://localhost:9000/updatecenter/available
时,它显示错误:未连接到更新中心.请检查您的互联网连接和日志."
When i open http://localhost:9000/updatecenter/available
it displays the error: "Not connected to update center. Please check your internet connection and logs."
在 sonar.log 中,我读到:org.sonar.api.utils.HttpDownloader$HttpException:无法下载 [http://update.sonarsource.org/update-center.properties].响应代码:403"
In sonar.log I read: "org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://update.sonarsource.org/update-center.properties]. Response code: 403"
在 sonar.properties 中,我使用与其他程序相同的代理对其进行了配置:
In sonar.properties I configured it with the same proxy which I use for other programs:
sonar.updatecenter.activate=true
http.proxyHost=<host>
http.proxyPort=<port>
http.proxyUser=<username>
http.proxyPassword=<password>
我尝试在 wrapper.properties 中进行相同的配置,但它也不起作用.
I tried the same to configure in wrapper.properties, but it didn't work either by the way.
对于代理主机,我尝试了简称和全名.对于用户名,我只尝试了用户名和
和
.
For the proxy host I tried the short and the full name. For the username I tried just the username and with <DOMAINNAME>\<username>
and <DOMAINNAME>\\<username>
.
没有任何效果.有什么想法吗?
Nothing of it worked. Any ideas?
推荐答案
我的代理配置工作并且看起来如下:
My proxy configuration works and looks the following way:
http.proxyHost=proxy.domain.de
http.proxyPort=8888
请注意,URL 前没有http://"或其他任何内容.
Note that there is no "http://" or anything else before the URL.
另外,我不使用代理身份验证,所以我将proxyUser"和proxyPassword"注释掉了.
Also, I do not use proxy authentication, so I left "proxyUser" and "proxyPassword" commented out.
这篇关于SonarQube 代理配置,棘手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!