spring-boot - 无法解决 Gradle Mail 依赖项
问题描述
每次我尝试构建我的 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'
谁能帮我这个?
解决方案
推荐阅读
- osgi - 获取工厂服务的引用(OSGI - AEM 上下文)
- reporting-services - SSRS 返回 1 个与结果集的其余部分不同的单个图
- android - 如何使用“APK Signature Scheme v3 and v4”为我的应用程序签名?
- python - 在 Python 中修改枚举类
- javascript - 使用带有 Node Express 的 Javascript 文件获取 net::ERR_ABORTED 404
- c# - 缩进和对齐在 office-js-in-word WordApi 1.2 中不起作用
- api - Microsoft 的文本分析 API (v2.1) - 错误地将法语单词“Bonjour”检测为英语
- java - 为什么它同时打印父类和子类的构造函数?
- git - 如何在 CURL Ansible 中发送有效的 JSON
- amazon-cloudformation - 使用卷 DeleteOnTermination=true 创建实例失败