美文网首页maven
Maven clean package 报错: Failed t

Maven clean package 报错: Failed t

作者: 极简架构 | 来源:发表于2023-05-08 09:50 被阅读0次

1.问题:

Maven clean package 报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources

 [Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources]

问题截图如下:

image.png

环境:

使用SpringBoot版本: 2.3.5.RELEASE
maven-resources-plugin版本:3.2.0

2.问题原因:

SpringBoot版本: 2.3.5.RELEASE 需要使用 maven-resources-plugin版本:3.1.0 才能正常编译构建。

3.问题fix方案:

修改pom.xml maven-resources-plugin版本为:3.1.0 ,重新构建即可

    <build>
          <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <!-- fix 3.2.0 SpringBoot maven-resources-plugin build error -->
                <version>3.1.0</version>
            </plugin>
        </plugins>
    </build>

相关文章

网友评论

    本文标题:Maven clean package 报错: Failed t

    本文链接:https://www.haomeiwen.com/subject/autlsdtx.html