根据名字就可以看出来,就是控制编译环境的
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<!-- <encoding>${project.build.sourceEncoding}</encoding> -->
<encoding>GBK</encoding>
<compilerArguments>
<bootclasspath>${java.home}lib
t.jar;${java.home}libjre.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>