maven错误解决:编码GBK的不可映射字符
问题:
mvn打包的时候大量提示: 编码GBK的不可映射字符!
解决办法:
对pom做修改,加入:
<!-- pom前部加入--> <properties> <maven.compiler.encoding>UTF-8</maven.compiler.encoding> </properties> .... ... ... <!-- pom后部加入--> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build>
持续学习、持续收获才能带来持续的满足和快乐!