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