Spring boot java app的Gradlew clean build失败了

时间:2017-09-04 10:21:57

标签: spring spring-boot gradle

我已下载Gradle 4.1并保持from("sourceSftp:<path of directory>") ---custom component env设置并尝试GRADLE_HOME

失败时出现以下异常

gradlew clean build

当我在调试模式下运行时,我可以看到这个

A problem occurred configuring root project '_app_'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve org.pitest:pitest-command-line:1.1.10.
     Required by:
         project :
      > Could not resolve org.pitest:pitest-command-line:1.1.10.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy
      > Could not resolve org.pitest:pitest-command-line:1.1.10.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy
   > Could not resolve info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.10.
     Required by:
         project :
      > Could not resolve info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.10.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy
      > Could not resolve info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.10.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy
   > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE.
     Required by:
         project :
      > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy
      > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE.
         > Could not initialize class org.gradle.internal.resource.transport.http.AlwaysRedirectRedirectStrategy

1 个答案:

答案 0 :(得分:0)

我重新安装了java,问题解决了。