<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
<version>2.2.7.RELEASE</version>
|
<relativePath/> <!-- lookup parent from repository -->
|
</parent>
|
|
<groupId>com.ycl.scheme</groupId>
|
<artifactId>Scheme</artifactId>
|
<version>1.0-SNAPSHOT</version>
|
<packaging>jar</packaging>
|
|
<name>Scheme</name>
|
<url>http://maven.apache.org</url>
|
|
<properties>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
<optional>true</optional>
|
</dependency>
|
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
</dependency>
|
|
|
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
<version>1.18.26</version>
|
</dependency>
|
|
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
<scope>test</scope>
|
</dependency>
|
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>mysql</groupId>
|
<artifactId>mysql-connector-java</artifactId>
|
<scope>runtime</scope>
|
</dependency>
|
|
<dependency>
|
<groupId>mysql</groupId>
|
<artifactId>mysql-connector-java</artifactId>
|
<scope>runtime</scope>
|
</dependency>
|
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
<version>1.1.22</version>
|
</dependency>
|
|
<dependency>
|
<groupId>org.apache.commons</groupId>
|
<artifactId>commons-lang3</artifactId>
|
</dependency>
|
|
|
<!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all -->
|
<dependency>
|
<groupId>org.codehaus.groovy</groupId>
|
<artifactId>groovy-all</artifactId>
|
<version>2.5.8</version>
|
<type>pom</type>
|
</dependency>
|
|
<dependency>
|
<groupId>ch.qos.logback</groupId>
|
<artifactId>logback-core</artifactId>
|
<version>1.2.3</version>
|
</dependency>
|
|
<!--mysql -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>mysql</groupId>
|
<artifactId>mysql-connector-java</artifactId>
|
<scope>runtime</scope>
|
</dependency>
|
|
</dependencies>
|
<build>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<!-- 如果要把依赖一起打包,注释下面configuration -->
|
<configuration>
|
<layout>ZIP</layout>
|
<includes>
|
<!--将依赖剔除,只编译打包本项目-->
|
<include>
|
<groupId>nothing</groupId>
|
<artifactId>nothing</artifactId>
|
</include>
|
</includes>
|
</configuration>
|
</plugin>
|
|
|
<!-- 跳过Test测试打包 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
<configuration>
|
<skip>true</skip>
|
</configuration>
|
</plugin>
|
|
<plugin>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<configuration>
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
</configuration>
|
<!--执行package时自动将依赖复制出来到/lib中-->
|
<executions>
|
<execution>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
|
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
<configuration>
|
<annotationProcessorPaths>
|
<path>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
<version>1.18.20</version>
|
</path>
|
</annotationProcessorPaths>
|
|
<annotationProcessors>
|
<annotationProcessor>
|
lombok.launch.AnnotationProcessorHider$AnnotationProcessor
|
</annotationProcessor>
|
</annotationProcessors>
|
|
</configuration>
|
</plugin><plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<!-- 如果要把依赖一起打包,注释下面configuration -->
|
<configuration>
|
<layout>ZIP</layout>
|
<includes>
|
<!--将依赖剔除,只编译打包本项目-->
|
<include>
|
<groupId>nothing</groupId>
|
<artifactId>nothing</artifactId>
|
</include>
|
</includes>
|
</configuration>
|
</plugin>
|
|
|
<!-- 跳过Test测试打包 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
<configuration>
|
<skip>true</skip>
|
</configuration>
|
</plugin>
|
|
<plugin>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<configuration>
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
</configuration>
|
<!--执行package时自动将依赖复制出来到/lib中-->
|
<executions>
|
<execution>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
|
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
<configuration>
|
<annotationProcessorPaths>
|
<path>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
<version>1.18.20</version>
|
</path>
|
</annotationProcessorPaths>
|
|
<annotationProcessors>
|
<annotationProcessor>
|
lombok.launch.AnnotationProcessorHider$AnnotationProcessor
|
</annotationProcessor>
|
</annotationProcessors>
|
|
</configuration>
|
</plugin>
|
</plugins>
|
</build>
|
</project>
|