This morning, hudson builds the test version, which can be compiled perfectly locally. When it is sent to the build server, it will report " "Unmappable character encoding GBK"
I searched for information on the Internet and said to set the encoding, the settings are as follows, <encoding>UTF-8</encoding> is the key to solving the problem
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> </configuration> </plugin>