Gradle构建在Eclipse中失败

时间:2018-06-18 09:20:36

标签: eclipse gradle gradle-plugin buildship

我正在使用Eclipse和Gradle Builds的BuildShip插件。

下面是Gradle Build时的控制台输出。 (来自Eclipse中的运行配置)。

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project_name'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1.
     Required by:
         :project_name:unspecified
      > Could not resolve org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1.
         > Could not get resource 'https://globalrepository.mclocal.int/artifactory/public/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.pom'.
            > Could not GET 'https://globalrepository.mclocal.int/artifactory/public/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.0.1/sonarqube-gradle-plugin-2.0.1.pom'.
               > Connect to globalrepository.mclocal.int:443 [globalrepository.mclocal.int/10.154.23.3] failed: Connection timed out: connect
   > Could not resolve org.hidetake:gradle-ssh-plugin:2.1.0.
     Required by:
         :project_name:unspecified
      > Could not resolve org.hidetake:gradle-ssh-plugin:2.1.0.
         > Could not get resource 'https://globalrepository.mclocal.int/artifactory/public/org/hidetake/gradle-ssh-plugin/2.1.0/gradle-ssh-plugin-2.1.0.pom'.
            > Could not GET 'https://globalrepository.mclocal.int/artifactory/public/org/hidetake/gradle-ssh-plugin/2.1.0/gradle-ssh-plugin-2.1.0.pom'.
               > Connect to globalrepository.mclocal.int:443 [globalrepository.mclocal.int/10.154.23.3] failed: Connection timed out: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 46.549 secs

这是与证书相关的吗?我在Maven有经验,我们在运行配置中的VM参数中添加证书。对于gradle是否相同,如果是这样,我如何添加m证书? (Eclipse IDE)

注意:我无法放置我的gradle构建文件,因为它无法共享。

0 个答案:

没有答案