代理后面更新中心:如何使用https bintray存储库?

Ali*_*rme 17 sonarqube

最近,SonarQube使用bintray存储库进行包分发,采用https(请参阅update-center.properties).

使用代理后面的更新中心,发现了一些更新,但升级时出现错误(此处为xml插件):

Fail to download the plugin (xml, version 1.3) from https://sonarsource.bintray.com/Distribution/sonar-xml-plugin/sonar-xml-plugin-1.3.jar (error is : Fail to download: https://sonarsource.bintray.com/Distribution/sonar-xml-plugin/sonar-xml-plugin-1.3.jar (no proxy)) 
Run Code Online (Sandbox Code Playgroud)

SonarQube:DefaultHttpDownloader似乎不支持https.proxyXXX属性.


今天是否有使用这些插件的更新中心的意思?


@SonarSource:sonar.properties未来可以支持此功能吗?或者为bintray存储库声明http url(但是邪恶的)?

谢谢

Ali*_*rme 25

今天是否有使用这些插件的更新中心的意思?

sonar.propertiesuse sonar.web.javaAdditionalOpts参数中声明https.proxyXXX属性:

sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=80 -Dhttps.proxyUser=myUser -Dhttps.proxyPassword=myPassword
Run Code Online (Sandbox Code Playgroud)

NB:

  • https.proxyUser/ https.proxyPassword如果与配置中的http.proxyUser/ 相同,则无用http.proxyPassword.
  • 这个答案已经过SonarQube v4.5系列的测试

也许有一天SonarQube配置中会提供一些特定属性:-).


Sim*_*rce 4

SonarQube 5.5 终于支持了https.proxyHost和属性。https.proxyPort感谢阿利克斯的反馈。 https://jira.sonarsource.com/browse/SONAR-7429