219 lines
8.4 KiB
XML
219 lines
8.4 KiB
XML
<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>com.transitPlatForm</groupId>
|
|
<artifactId>transitPlatForm</artifactId>
|
|
<version>1.0</version>
|
|
</parent>
|
|
|
|
<artifactId>pf_system</artifactId>
|
|
|
|
<name>pf_system</name>
|
|
|
|
<dependencies>
|
|
|
|
<!-- spring-boot-devtools -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
|
</dependency>
|
|
|
|
|
|
<!-- 通用工具-->
|
|
<dependency>
|
|
<groupId>com.transitPlatForm</groupId>
|
|
<artifactId>pf_interfaceCommon</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.transitPlatForm</groupId>
|
|
<artifactId>pf_transitPF</artifactId>
|
|
</dependency>
|
|
|
|
<!--定时任务-->
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.transitPlatForm</groupId>-->
|
|
<!-- <artifactId>lis-quartz</artifactId>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- <dependency>-->
|
|
<!-- <groupId>com.transitPlatForm</groupId>-->
|
|
<!-- <artifactId>lisresources</artifactId>-->
|
|
<!-- </dependency>-->
|
|
|
|
<!-- SpringBoot Web容器 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SpringBoot 拦截器 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 阿里数据库连接池 -->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 验证码 -->
|
|
<dependency>
|
|
<groupId>pro.fessional</groupId>
|
|
<artifactId>kaptcha</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>servlet-api</artifactId>
|
|
<groupId>javax.servlet</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- 获取系统信息 -->
|
|
<dependency>
|
|
<groupId>com.github.oshi</groupId>
|
|
<artifactId>oshi-core</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
<artifactId>mssql-jdbc</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<!--打包时去除第三方依赖-->
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>2.5.15</version>
|
|
<configuration>
|
|
<layout>ZIP</layout>
|
|
<includes>
|
|
<include>
|
|
<groupId>non-exists</groupId>
|
|
<artifactId>non-exists</artifactId>
|
|
</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.4.1</version>
|
|
<configuration>
|
|
<!-- 不打包资源文件(配置文件和依赖包分开) -->
|
|
<excludes>
|
|
<exclude>*.yml</exclude>
|
|
<include>*.xml</include>
|
|
<exclude>*.properties</exclude>
|
|
<exclude>static/**</exclude>
|
|
</excludes>
|
|
<archive>
|
|
<manifest>
|
|
<addClasspath>true</addClasspath>
|
|
<!-- MANIFEST.MF 中 Class-Path 加入前缀 -->
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
<!-- jar包不包含唯一版本标识 -->
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
<!--指定入口类 -->
|
|
<mainClass>com.transitPlatForm.system.TransitPlatFormApplication</mainClass>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
|
|
<Class-Path>
|
|
./config/
|
|
pf_transitPF-1.0.jar
|
|
pf_interfaceCommon-1.0.jar
|
|
pf_system-1.0.jar
|
|
pf_common-1.0.jar
|
|
</Class-Path>
|
|
</manifestEntries>
|
|
</archive>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- 该插件的作用是用于复制依赖的jar包到指定的文件夹里 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/lib/</outputDirectory>
|
|
<excludeGroupIds>com.transitPlatForm</excludeGroupIds>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<!--打包自定义jar包-->
|
|
<execution>
|
|
<id>copy-custom-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<includeGroupIds>com.transitPlatForm</includeGroupIds>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- 该插件的作用是用于复制指定的文件 -->
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.3.1</version>
|
|
<executions>
|
|
<execution> <!-- 复制配置文件 -->
|
|
<id>copy-resources</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<includes>
|
|
<include>*.yml</include>
|
|
<include>*.xml</include>
|
|
<include>*.properties</include>
|
|
<include>static/**</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<outputDirectory>${project.build.directory}/config</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<finalName>${project.artifactId}</finalName>
|
|
</build>
|
|
</project>
|