maven-compiler-plugin

根據名字就能夠看出來,就是控制編譯環境的java

 

<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> apache

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息