天天看点

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

问题描述

JAVA springboot项目,程序运行正常,mvn clean install出错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demo: 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
           

原因

application.properties文件编码出错,加了中文注释

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

解决

去掉 application.properties 文件的中文注释