项目场景:
简述项目相关背景:
SpringBoot项目
采用 war包 方式进行打包,用于后期发布到 Tomcat服务器 上。
问题描述
springBoot打包时的错误信息:
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Using ‘UTF-8’ encoding to copy filtered properties files.
···1、[ERROR]
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project shop: Input length = 1 -> [Help 1]
2、[ERROR]
To see the full stack trace of the errors, re-run Maven with the -e switch.
3、[ERROR]
Re-run Maven using the -X switch to enable full debug logging.
原因分析:
1、根据第一条错误得出:
maven 插件出现打包错误
2、[INFO] Using ‘UTF-8’ encoding to copy filtered resources.得出
字符编码格式错误
解决方案:
整个springBoot项目配置文件,
也就是application.yml 或者是 application.properties
去除 中文字符 , 这样编码则不会再出错