无法解决Gradle Mail依赖性

时间:2020-07-14 08:43:41

标签: spring-boot

每次尝试构建Spring Boot项目(使用Gradle 6.5)时,都会出现以下错误:

    Execution failed for task ':compileJava'.
 Could not resolve all files for configuration ':compileClasspath'.
    Could not resolve org.springframework.boot:spring-boot-starter-mail:2.3.0.RELEASE.
     Required by:
         project :
       Could not resolve org.springframework.boot:spring-boot-starter-mail:2.3.0.RELEASE.
          Could not parse POM https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-mail/2.3.0.RELEASE/spring-boot-starter-mail-2.3.0.RELEASE.pom
             Content is not allowed in prolog.
    Could not resolve org.springframework.boot:spring-boot-starter-mail:2.3.0.RELEASE.
     Required by:
         project :  org.springframework.boot:spring-boot-starter-webflux:2.3.0.RELEASE > org.springframework.boot:spring-boot-dependencies:2.3.0.RELEASE
       Could not resolve org.springframework.boot:spring-boot-starter-mail:2.3.0.RELEASE.
          Could not parse POM https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-mail/2.3.0.RELEASE/spring-boot-starter-mail-2.3.0.RELEASE.pom
             Content is not allowed in prolog.

我在一个团队中工作,没有其他人有相同的错误-似乎我们都做了相同的事情。我尝试手动将一个库设置为从Oracle网站下载的javax.mail.jar,但没有帮助。以下行来自添加依赖项的build.gradle文件:

implementation 'org.springframework.boot:spring-boot-starter-mail'

有人可以帮我吗?

0 个答案:

没有答案