mvn package packaging Times coding errors

 

 Error : the character encoding GBK unmappable
 
The reason :
GBK coding mvn compile time used by default, and you code the way conflict
 
Solution :
Join in the pom.xml file
1 <the Properties> <-! Indicate the character encoding used when compiling the source code, GBK coding maven compile time used by default, property is set by project.build.sourceEncoding character encoding, tell maven project using UTF-8 to compile - ->  
 2 <project.build.sourceEncoding> UTF . 8 </project.build.sourceEncoding> </ Properties>

 

  

 
 

Guess you like

Origin www.cnblogs.com/huangguoming/p/12559431.html