0

这是我的 POM.xml 文件和我在 STS 中遇到的错误,如下所示:

<project xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
            http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ducat.springboot.mongodb</groupId>
    <artifactId>Ideas</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    
    <name>Ideas Maven Webapp</name>
    <url>http://maven.apache.org</url>
    
    <!-- spring boot parent dependency jar -->
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.1.RELEASE</version>
    </parent>
    
    <properties>
        <java.version>1.8</java.version>
        
    </properties>
    
    
    <dependencies>
    <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-mongodb</artifactId>
        </dependency>

        

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.4</version>
         </dependency>



        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    
        <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.3.0</version>
    </dependency>
    </dependencies>
    
    <build>

        <finalName>Ideas App</finalName>
    </build>
</project>

CoreException:无法获取用于插件执行默认编译的参数 compilerId 的值:PluginResolutionException:插件 org.apache.maven.plugins:maven-compiler-plugin:3.8.0 或其依赖项之一无法解析:无法收集org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.0 -> org.apache.maven.shared:maven-shared-incremental:jar:1.1 -> org.apache.maven:maven- 的依赖项core:jar:2.2.1 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-artifact-manager:jar:2.2.1 -> backport-util-concurrent :backport-util-concurrent:jar:3.1: ArtifactDescriptorException: 无法读取 backport-util-concurrent:backport-util-concurrent:jar:3.1 的工件描述符: ArtifactResolutionException: 无法传输 backport-util-concurrent:backport-util-并发:pom:3.1 来自https://repo.maven.apache.org/maven2缓存在本地仓库中,直到中央的更新间隔过去或强制更新后才会重新尝试解析。原始错误:无法将工件 backport-util-concurrent:backport-util-concurrent:pom:3.1 从/到中央传输(https://repo.maven.apache.org/maven2):PKIX 路径构建失败:sun.security .provider.certpath.SunCertPathBuilderException: 无法找到到请求的目标 pom.xml /Ideas line 13 Maven Project Build Lifecycle Mapping Problem 的有效认证路径

生命周期配置未涵盖插件执行:org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (execution: default-compile, phase: compile) pom.xml /Ideas line 13 Maven Project Build Lifecycle Mapping问题

4

1 回答 1

0

如果您将堆栈跟踪作为代码片段提供以使其更具可读性,通常会很有帮助。

看起来根本原因如下:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

您应该在 StackOverflow 或网络上找到解释如何配置用于执行 Maven 的 JVM 的帖子。:)

于 2021-07-06T19:58:44.927 回答