<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>
|
|
<groupId>com.lxzn</groupId>
|
<artifactId>lxzn-system-collect</artifactId>
|
<version>1.0.0</version>
|
<url>http://maven.apache.org</url>
|
<name>LXZN-SYSTEM-COLLECT ${project.version}</name>
|
|
<parent>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
<version>2.6.6</version>
|
<relativePath/>
|
</parent>
|
|
<properties>
|
<java.version>1.8</java.version>
|
<sqljdbc4.version>4.0</sqljdbc4.version>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<mybatis-plus.version>3.5.6</mybatis-plus.version>
|
<dynamic-datasource-spring-boot-starter.version>3.2.0</dynamic-datasource-spring-boot-starter.version>
|
<druid.version>1.1.22</druid.version>
|
|
<knife4j-spring-boot-starter.version>3.0.3</knife4j-spring-boot-starter.version>
|
<knife4j-spring-ui.version>2.0.9</knife4j-spring-ui.version>
|
</properties>
|
|
<dependencies>
|
<!--集成springmvc框架并实现自动配置 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
</dependency>
|
|
<!-- mybatis-plus -->
|
<dependency>
|
<groupId>com.baomidou</groupId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<version>${mybatis-plus.version}</version>
|
</dependency>
|
|
<!-- mybatis-plus -->
|
<dependency>
|
<groupId>com.baomidou</groupId>
|
<artifactId>mybatis-plus-generator</artifactId>
|
<version>3.5.6</version>
|
</dependency>
|
|
<dependency>
|
<groupId>org.freemarker</groupId>
|
<artifactId>freemarker</artifactId>
|
</dependency>
|
|
<!-- druid -->
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
<version>${druid.version}</version>
|
</dependency>
|
|
<!-- 动态数据源 -->
|
<dependency>
|
<groupId>com.baomidou</groupId>
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
<version>${dynamic-datasource-spring-boot-starter.version}</version>
|
</dependency>
|
|
<!-- sqlserver-->
|
<dependency>
|
<groupId>com.microsoft.sqlserver</groupId>
|
<artifactId>sqljdbc4</artifactId>
|
<version>${sqljdbc4.version}</version>
|
<scope>runtime</scope>
|
</dependency>
|
|
<!-- knife4j -->
|
<dependency>
|
<groupId>com.github.xiaoymin</groupId>
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
<version>${knife4j-spring-boot-starter.version}</version>
|
</dependency>
|
|
<!-- Lombok -->
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
</dependency>
|
</dependencies>
|
|
<build>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
</plugin>
|
<!-- 指定JDK编译版本 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
<configuration>
|
<source>1.8</source>
|
<target>1.8</target>
|
<encoding>UTF-8</encoding>
|
</configuration>
|
</plugin>
|
<!-- 打包跳过测试 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
<configuration>
|
<skipTests>true</skipTests>
|
</configuration>
|
</plugin>
|
</plugins>
|
</build>
|
<!-- 环境 -->
|
<profiles>
|
<!-- 开发 -->
|
<profile>
|
<id>dev</id>
|
<activation>
|
<!--默认激活配置-->
|
<activeByDefault>true</activeByDefault>
|
</activation>
|
<properties>
|
<!--当前环境-->
|
<profile.name>dev</profile.name>
|
</properties>
|
</profile>
|
<!-- 测试 -->
|
<profile>
|
<id>test</id>
|
<properties>
|
<!--当前环境-->
|
<profile.name>test</profile.name>
|
</properties>
|
</profile>
|
<!-- 生产 -->
|
<profile>
|
<id>prod</id>
|
<properties>
|
<!--当前环境-->
|
<profile.name>prod</profile.name>
|
</properties>
|
</profile>
|
</profiles>
|
</project>
|