当我maven install
在我的多模块 maven 项目上运行时,我总是得到以下输出:
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
所以,我用谷歌搜索了一下,但我能找到的只是我必须添加:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
...到我的 pom.xml。但它已经存在(在 parent 中pom.xml
)。
配置<encoding>
maven-resources-plugin 或 maven-compiler-plugin 也不能修复它。
所以有什么问题?