当我将以下依赖项添加到我的项目时:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-client</artifactId>
</dependency>
我在使用运行项目时遇到此错误 clean spring-boot:run -Pdev
在intellij idea中:
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.1.RELEASE:run (default-cli) on project webapp: Could not exec java
日志中也有此警告:
[WARNING] Could not transfer metadata net.minidev:json-smart/maven-metadata.xml from/to spring-milestones (https://repo.spring.io/libs-milestone): Authentication failed for https://repo.spring.io/libs-milestone/net/minidev/json-smart/maven-metadata.xml 401 Unauthorized
1条答案
按热度按时间yzuktlbb1#
您需要使用启动器,否则可能会缺少依赖项和意外的异常
这里是完整的xml