maven compile报错Failed to execute goal org.apache.maven.plugins maven-resources-plugin

maven compile报错Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project drools_dynamic2: Input length = 1 ->

完整报错如下:

“`Plain Text
“C:\Program Files\Java\jdk-11.0.12\bin\java.exe” -Dmaven.multiModuleProjectDirectory=D:\DevProjects\drools_dynamic2 -Dmaven.home=D:\Devtools\Maven-3.8.3 -Dclassworlds.conf=D:\Devtools\Maven-3.8.3\bin\m2.conf “-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.3\plugins\maven\lib\maven-event-listener.jar” “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.3\lib\idea_rt.jar=50864:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.3\bin” -Dfile.encoding=UTF-8 -classpath D:\Devtools\Maven-3.8.3\boot\plexus-classworlds-2.6.0.jar;D:\Devtools\Maven-3.8.3\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2020.3.3 -s D:\Devtools\Maven-3.8.3\conf\settings.xml -Dmaven.repo.local=D:\Devtools\Maven-3.8.3\repository compile
[INFO] Scanning for projects…
[INFO]
[INFO] ———————–< com.lt:drools_dynamic2 >———————–
[INFO] Building drools_dynamic2 0.0.1-SNAPSHOT
[INFO] ——————————–[ jar ]———————————
[INFO]
[INFO] — maven-resources-plugin:3.2.0:resources (default-resources) @ drools_dynamic2 —
[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: 0.954 s
[INFO] Finished at: 2021-11-11T21:35:31+08:00
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project drools_dynamic2: 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

进程已结束,退出代码1

解决办法:

添加插件

```Plain Text
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.1.0</version>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
大T笔记所有文章均为本人原创,转载请您注明来源,并留下原文链接地址,是对我的尊重,也是对知识的尊重,谢谢!
大T笔记 » maven compile报错Failed to execute goal org.apache.maven.plugins maven-resources-plugin

大T笔记-我的个人互联网创业和自由职业之路

关于我 我的百宝箱
大T笔记-专注个人互联网创业和自由职业