- springboot 打包报错
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project xxx: 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
项目编码和 application.properties 、application.yaml 等配置文件中的编码格式冲突
- 解决思路: 统一编码
- 方式1: 修改配置文件去掉非英文字符【具体要看项目的编码格式】
- 方式2:修改项目的编码格式,建议修改为 utf-8
- 推荐方式2
方式2具体操作:以 idea 编辑器为例。
菜单:File/Settings/Editor/File Encodings 修改以下三项为 UTF-8 编码格式
- Global Encoding
- Project Encoding
- Default encoding for properties files