[Maven] maven-compile-plugin compiled code

 

 

< Plugin >                                                                 
    <-! Specify maven compile jdk version, if not specified, maven3 default with jdk 1.5 maven2 default with JDK1.3 ->                                              
    < groupId > org.apache.maven.plugins </ groupId >                          
    < artifactId > maven plugin--compiler </ artifactId >                       
    < version > 3.1 </ version >                                               
    < the Configuration >                                                                                                         
        <-! in general, target and source are consistent, but sometimes in order to allow the program to run in other versions of the jdk (for low target jdk version, the source code can not be used in low version jdk syntax does not support), there is a case will be different from the source of the target ->  
        < source > 1.8 </source> <-! The JDK version of the source code used ->                
        < target > 1.8 </ target >  <-! Compiled version of the target needs to be generated class files ->    
        < encoding > UTF-. 8 </ encoding > <! - - character set encoding -> 
        < skipTests > to true </ skipTests > <-! skip the test ->                     
        < verbose > to true </ verbose > 
        < showwarnings > to true </ showwarnings >                                
        <fork>to true </ fork > <-! For compilerVersion labels to take effect, you need to fork set to true, the compiled version is available for clear configuration ->                                               
        < Executable > <-! path-to-javac -> </ Executable > <-! the javac specified command, for example: <Executable> $ {JAVA_1_4_HOME} / bin / the javac </ Executable> ->            
        < CompilerVersion > 1.3 </ CompilerVersion > ! <- Specifies the plug will be used the version of the compiler ->                                    
        < meminitial > 128M </ meminitial > <-! initial memory used by the compiler ->         
        <maxmem>512M </ the maxmem > <-! Maximum memory used by the compiler ->                 
        < compilerArgument > -verbose the java.home -bootclasspath $ {} \ lib \ rt.jar </ compilerArgument > <-! This option is used to transfer the compiler itself is not included but support parameter options ->          
    </ the Configuration > 
</ plugin >   

 

Guess you like

Origin www.cnblogs.com/clarino/p/12089240.html