maven-compiler-plugin

时间:2021-11-04 15:11:34

根据名字就可以看出来,就是控制编译环境的

<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\rt.jar;${java.home}\lib\jre.jar</bootclasspath>
                 </compilerArguments>
             </configuration>
        </plugin>