Java 使用 Maven 编译时插件提示 拷贝错误

提示的具体信息为:

复制代码
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources (default-resources) on project core-java-8: filtering C:\WorkDir\Repository\iSharkfly-Docs\java-tutorials\core-java-modules\core-java
-8\src\main\resources\formats_fr.properties to C:\WorkDir\Repository\iSharkfly-Docs\java-tutorials\core-java-modules\core-java-8\target\classes\formats_fr.properties failed with MalformedInputException: Input length = 1 -> [Help 1]

问题和解决

上面提示的错误原因在于属性文件使用了非英语字符,但是属性文件没有使用 UTF-8 编码。

这会导致程序识别的错误。

检查属性文件的编码格式,需要修改为 UTF-8 编码。

Java 使用 Maven 编译时插件提示 拷贝错误 - Java - iSharkFly提示的具体信息为: ERROR Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources (default-resources) on project core-java-8: filtering C:\WorkDir\Repository\iSharkfly-Docs\java-tutorials\core-jav...https://www.isharkfly.com/t/java-maven/15690

相关推荐
小白学大数据1 天前
Codex 里的 GPT 6 Astra、GPT 5.6 Sol、Terra、Luna 怎么选
开发语言·gpt·microsoft
l1t1 天前
DeepSeek 4.1总结的Tom Lane 谈塑造 Postgres 三十年历程的架构决策
开发语言·数据库·postgresql·架构
欢迎来到祖安!1 天前
企业微信 API 接口能力介绍:支持消息收发、图片发送、表情互动、联系人管理等多场景应用
java·前端·数据仓库·spring cloud·企业微信
dadaobusi1 天前
学习:RV lkvm SBI
java·学习·spring
djarmy1 天前
MAIN.c(1): warning C318: can’t open file ‘STC8G.H’ 报错 解决 分析
c语言·开发语言·mongodb
HEJOO91 天前
深入理解 Java volatile 关键字:原理、用法与常见误区
java·开发语言·spring
曹牧1 天前
Java:no content to map due to end of input
java·开发语言
阿维的博客日记1 天前
Example 类全场景实战指南
java·mybatis
梦梦代码精1 天前
《回收租赁系统技术选型避坑指南:业务闭环与二开自由度详解》
开发语言·低代码·docker·开源·代码规范
两点王爷1 天前
SpringBoot 项目集成 GeoServer 源码,实现地图服务发布
java·spring boot·后端