代码编织梦想

报错信息如下:

[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------------< com.wjh:helloworld >-------------------------
[INFO] Building helloworld 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.033 s
[INFO] Finished at: 2020-12-01T18:36:39+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project helloworld: Input length = 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

解决办法:

修改maven-resources-plugin版本!

pom文件修改如下:

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <!--修改版本-->
                <version>3.1.0</version>
            </plugin>
        </plugins>
    </build>

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_46474921/article/details/129679965

解决问题:Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4-爱代码爱编程

今天电脑重启电脑,编译项目莫名其妙的报错如下 Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project 这个错误的话比较好解决,是由于你项目所需jdk版本和你当前使用的jdk版本不一致导致的

springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0...-爱代码爱编程

解决方法写在前面:修改maven-resources-plugin的版本<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <ar

springboot打包错误分析:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0-爱代码爱编程

maven-resources-plugin介绍: copies the resources for the main source code to the main output directory. This goal usually executes automatically, because it is bound by default

打jar包报错 :Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0 解决-爱代码爱编程

解决 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0 报错时的pom文件中plugin的配置: <build> <plugins> <plugin>

Springboot打包报错Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0-爱代码爱编程

问题描述: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project helloworld: Input length = 1 -> [Help 1] 问题

springboot打包错误:Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin3.2.0-爱代码爱编程

解决方法写在前面:修改maven-resources-plugin的版本 org.springframework.boot spring-boot-maven-plugin <!--在这里修改版本--> <plugin> <groupId>org.apache.maven.plugins

springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource-爱代码爱编程

SpringBoot使用pagake命令打包出现错误 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project service: The plugin org.apache.m

springboot项目打包报错:failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0_贰仙桥、的博客-爱代码爱编程

原因是打包插件plugins标签里面缺少maven-resources-plugin依赖,添加上即可解决。完整的依赖为: <build>     <plugins>         <plugin>             <groupId>org.apache.maven.plugins</grou

springboot打包错误:failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0_1024的小猿猿的博客-爱代码爱编程

运行Springboot程序想打jar包的时候失败了… 网上的方法我试了很多都没有成功… 1、 pom.xml 文件内没有引入 maven-resources-plugin,或者设定的版本不行,建议使用 3.1.0 版本试试。 2、maven => setting.xml 内没有设定 jdk 版本,或者设定的版本和当前项目的版本不相符。

maven打包错误: failed to execute goal org.apache.maven.pluginsmaven-resources-plugin3.2.0resources_zninesun的博客-爱代码爱编程

今天想打包服务上线的时候突然报了一个错: 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_三维轮的博客-爱代码爱编程

关于spring boot 项目打包常出现的两个问题: 出现如下问题请不要随意更换修改版本。如果修改了某些版本,如下解决办法依然无法解决问题的话,请把maven仓库内容删除干净重新拉取下载,再用一下方法即可解决问题。没有配置maven的话,maven一般在  C:\Users\Administrator\.m2目录里面。 1、 Failed to ex

解决failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources......-爱代码爱编程

前言: springboot升级导致 报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources

【spring高级49讲】-爱代码爱编程

Spring高级49讲 Spring是整个Java体系最核心的框架,没有之一面试必备技术、思想提升 一.容器和Bean 第1讲.BeanFactory和ApplicationContext 1.1.Bean

javaee简单示例——基于注解的aop实现-爱代码爱编程

简单介绍: 之前我们介绍了关于XML的面向切面的编程,通过配置文件的方法,在不修改源代码的情况下完成了对已有方法的增强 除了基于XML配置文件的方式,我们还可以使用更简单的,基于注解的方式。 每一次,我们在使用面向切面的注解的时候,我们都要明确三个问题,插什么?插谁?插在哪? 这三个问题也就对应了我们面向切面中的切面,增强,切入点,关系。带着这样的问题

springboot项目使用maven打包错误:failed to execute goal org.apache.maven.plugins:maven-爱代码爱编程

     解决办法,加依赖!! // 原有依赖 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-mav