如何在代理后面使用gradle enterprise maven扩展?

如何在代理后面使用gradle enterprise maven扩展?,maven,gradle,migration,Maven,Gradle,Migration,愿意使用gradle enterprise maven扩展 要将项目从maven迁移到gradle, 我克隆了gradle团队提供的 但在接受gradle服务条款后,按照规定运行mvn安装, 我收到以下信息: UnknownHostException:scans in.gradle.com 我尝试以几种方式配置代理: 使用commannd行选项: mvn安装-Dhttps.proxyHost=localhost:8888-Dhttps.proxyPort=localhost:8888 在%gra

愿意使用gradle enterprise maven扩展 要将项目从maven迁移到gradle, 我克隆了gradle团队提供的

但在接受gradle服务条款后,按照规定运行mvn安装, 我收到以下信息:
UnknownHostException:scans in.gradle.com

我尝试以几种方式配置代理:

  • 使用commannd行选项:
    mvn安装-Dhttps.proxyHost=localhost:8888-Dhttps.proxyPort=localhost:8888

  • 在%gradle\u USER\u HOME%目录位置的目录中使用gradle.properties文件: (代理也在maven的settings.xml中配置,不需要密码,以标准方式使用maven时,它可以正常工作)

  • gradle.properties:

    systemProp.http.proxyHost=localhost
    systemProp.http.proxyPort=8888
    systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost|127.0.0.1
    systemProp.https.proxyHost=localhost
    systemProp.https.proxyPort=8888
    systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost|127.0.0.1
    
    但我仍然收到同样的信息:

    ~/github/maven-build-scan-quickstart
    $ mvn install
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD SUCCESS
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time:  3.830 s
        [INFO] Finished at: 2019-12-31T13:09:19+01:00
        [INFO] ------------------------------------------------------------------------
        [INFO] 7 goals, 7 executed
        Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? (yes/no): yes
        [INFO] Gradle Terms of Service accepted.
        [INFO]
        [INFO] Publishing build scan...
        [INFO]
        [INFO] A network error occurred.
        [INFO]
        [INFO] The hostname 'scans-in.gradle.com' could not be resolved.
        [INFO] You may be disconnected from the Internet.
        [INFO]
        [INFO] If you require assistance with this problem, please report it via https://gradle.com/help/plugin and include the following information via copy/paste.
        [INFO]
        [INFO] ----------
        [INFO] Maven version: 3.6.2
        [INFO] Extension version: 1.3.3
        [INFO] Request URL: https://scans-in.gradle.com/in/maven/3.6.2/1.3.3
        [INFO] Request ID: 1234567e-abcd-23de-c2d3-3fbbccd14a32
        [INFO] Exception: java.net.UnknownHostException: scans-in.gradle.com
        [INFO] ----------
        [INFO]
    

    我想请求Gradle的企业支持……谢谢你,告诉我;-)@赫马尔拜斯。。。由于这是免费提供的工具的官方快速启动,我希望不需要Gradle的企业支持…也许我没有弄错,但这是必需的?好的,谢谢,这里有更多解释,扩展需要一个配置文件,如这里所解释的。我以后会处理的。谢谢