[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent! 解决方案 pom文件中增加 <plugin><groupid>org.apache.maven.plugins</groupid><artifactid>maven-resources-plugin</artifactid><configuration><encoding>UTF-8</encoding></configuration></plugin> 另: 解决编译乱码问题,需增加 <plugin><groupid>org.apache.maven.plugins</groupid><artifactid>maven-compiler-plugin</artifactid><configuration><source>1.6</source><target>1.6</target><encoding>UTF-8</encoding></configuration></plugin> 另: 1执行mvn,生成好jar包并在其它工程引用此jar及其源码jar,如果还是乱码,可能就是eclipse的配置问题了,确认windows->Preferences->general->Workspace->Text file encoding设置为UTF-8 2确认windows->Preferences->general->Content Types->右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update
标签:编码,中文,UTF,Preferences,encoding,jar,Maven,platform,乱码 From: https://blog.51cto.com/u_16070335/6189666