springBoot common maven project dependent and dependent description

springBoot common maven project dependent and dependent description

 

1:maven-compiler-plugin 

<Build> 
   <plugins> 
      <-! 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>                                                                                                
    < the artifactId> Compiler-Maven-plugin </ the artifactId>                                                                                             
    <Version> 3.1 </ Version>                                                                                                                     
    <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-jdk version does not support the syntax), will be different from the source of the presence of target ->                    
        <source> 1.8 </ source> <-! JDK version of the source code used ->                                                                                              
        <target> 1.8 </ target> <-! compiled version of the class need to generate the target file ->                                                                                      
        <encoding> UTF- 8 </ encoding> <-! coded character set -> 
        <skipTests> to true </ skipTests> <-! skip the test ->                                                                              
        <verbose> true </ verbose>
        <showwarnings> to true </ showwarnings>                                                                                                                
        <fork> to true </ fork> <-! For compilerVersion labels to take effect, you need to fork set to true, for it clear that the compiled version of the configuration available ->                                                                      
    </ the Configuration>                          
    </ plugins> 
</ Build>

 

2:spring-boot-maven-plugin

Spring Boot Maven plugin is able to Spring Boot application is packaged as a jar or war executable file, and then run the Spring Boot application in the usual way.

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.0.1.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

 

 

 

..........

 

Guess you like

Origin www.cnblogs.com/dw3306/p/11032477.html