<?xml version="1.0" encoding="UTF-8"?>
|
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<parent>
|
<artifactId>pms-parent</artifactId>
|
<groupId>com.dy</groupId>
|
<version>1.0.0</version>
|
<relativePath>../pom.xml</relativePath>
|
</parent>
|
|
<packaging>jar</packaging>
|
<artifactId>pms-web-platform</artifactId>
|
<version>1.0.0</version>
|
<name>pms-web-platform</name>
|
<description>web平台信息系统</description>
|
|
<dependencies>
|
<dependency>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-common</artifactId>
|
<version>1.0.0</version>
|
</dependency>
|
<dependency>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-global</artifactId>
|
<version>1.0.0</version>
|
</dependency>
|
|
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
<exclusions>
|
<!-- 引入log4j2日志时需去掉默认的logback -->
|
<exclusion>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-logging</artifactId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-validation</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-devtools</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
</dependency>
|
<!-- lombok -->
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
</dependency>
|
<!-- @Aspect @Pointcut @Around等应用 -->
|
<dependency>
|
<groupId>org.aspectj</groupId>
|
<artifactId>aspectjweaver</artifactId>
|
</dependency>
|
<!-- JsonFormat用到 -->
|
<dependency>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
<artifactId>jackson-annotations</artifactId>
|
</dependency>
|
<!-- 用于辨认log4j2.yml文件 -->
|
<dependency>
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
</dependency>
|
<!--mysql驱动-->
|
<dependency>
|
<groupId>com.mysql</groupId>
|
<artifactId>mysql-connector-j</artifactId>
|
</dependency>
|
<!--druid-spring-boot连接池-->
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
<version>${druid-spring-boot-starter.version}</version>
|
</dependency>
|
<!--mybatis-plus-spring-boot-->
|
<dependency>
|
<groupId>com.baomidou</groupId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<exclusions>
|
<exclusion>
|
<artifactId>mybatis-spring</artifactId>
|
<groupId>org.mybatis</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<dependency>
|
<groupId>org.mybatis</groupId>
|
<artifactId>mybatis-spring</artifactId>
|
<version>${mybatis-spring.version}</version>
|
</dependency>
|
<!-- 阿里fastjson -->
|
<dependency>
|
<groupId>cglib</groupId>
|
<artifactId>cglib</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.fastjson2</groupId>
|
<artifactId>fastjson2</artifactId>
|
<version>${fastjson2.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.fastjson2</groupId>
|
<artifactId>fastjson2-extension-spring6</artifactId>
|
<version>${fastjson2.version}</version>
|
</dependency>
|
<!-- 阿里EasyExcel -->
|
<dependency>
|
<groupId>com.alibaba</groupId>
|
<artifactId>easyexcel</artifactId>
|
<version>${easyexcel.version}</version>
|
</dependency>
|
<!-- vo po转换 -->
|
<dependency>
|
<groupId>org.mapstruct</groupId>
|
<artifactId>mapstruct</artifactId>
|
<version>${mapstruct.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>org.mapstruct</groupId>
|
<artifactId>mapstruct-processor</artifactId>
|
<version>${mapstruct.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>io.netty</groupId>
|
<artifactId>netty-all</artifactId>
|
</dependency>
|
<!-- bean和map互转换 -->
|
<dependency>
|
<groupId>org.apache.dubbo</groupId>
|
<artifactId>dubbo</artifactId>
|
<version>${dubbo.version}</version>
|
<exclusions>
|
<exclusion>
|
<groupId>io.netty</groupId>
|
<artifactId>netty-all</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>org.yaml</groupId>
|
<artifactId>snakeyaml</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>org.springframework</groupId>
|
<artifactId>spring-context</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>com.alibaba.spring</groupId>
|
<artifactId>spring-context-support</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>com.alibaba.fastjson2</groupId>
|
<artifactId>fastjson2</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>com.alibaba</groupId>
|
<artifactId>hessian-lite</artifactId>
|
</exclusion>
|
<exclusion>
|
<groupId>org.javassist</groupId>
|
<artifactId>javassist</artifactId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
|
|
<!-- jdom2 -->
|
<dependency>
|
<groupId>org.jdom</groupId>
|
<artifactId>jdom2</artifactId>
|
</dependency>
|
|
<!-- quartz -->
|
<dependency>
|
<groupId>org.quartz-scheduler</groupId>
|
<artifactId>quartz</artifactId>
|
</dependency>
|
<!-- zxing生成二维码 -->
|
<dependency>
|
<groupId>com.google.zxing</groupId>
|
<artifactId>core</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.google.zxing</groupId>
|
<artifactId>javase</artifactId>
|
</dependency>
|
|
<!-- Hutool是一个小而全的Java工具类库(https://github.com/dromara/hutool) -->
|
<dependency>
|
<groupId>cn.hutool</groupId>
|
<artifactId>hutool-all</artifactId>
|
</dependency>
|
</dependencies>
|
|
<build>
|
<plugins>
|
<!-- 生成不包含依赖jar的可执行jar包
|
<plugin>
|
!- spring boot提供的maven打包插件 -
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<executions>
|
<execution>
|
!-
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
-
|
<configuration>
|
!- 不加的话最终包名为: ${artifactId}-${version}.jar, 加了的话最终包名: ${artifactId}-${version}-${classifier}.jar -
|
<classifier>execute</classifier>
|
!- 不指定生成路径的话, 默认保存在 ${build.directory} 下 -
|
<outputDirectory>${project.build.directory}/execute</outputDirectory>
|
<finalName>${artifactId}-${version}</finalName>
|
<layout>ZIP</layout>
|
<mainClass>com.dy.pmsPlatform.PmsPlatformApplication</mainClass>
|
<includes>
|
<include>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-common</artifactId>
|
</include>
|
<include>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-global</artifactId>
|
</include>
|
</includes>
|
<excludes>
|
<exclude>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
</exclude>
|
</excludes>
|
</configuration>
|
</execution>
|
</executions>
|
|
</plugin>
|
-->
|
<!-- 拷贝依赖的jar包到lib目录-->
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<executions>
|
<execution>
|
<configuration>
|
<!-- 不加的话最终包名为: ${artifactId}-${version}.jar, 加了的话最终包名: ${artifactId}-${version}-${classifier}.jar
|
<classifier>execute</classifier>
|
-->
|
<!-- ${project.build.directory}是maven变量,内置的,表示target目录,如果不写,将在根目录下创建/lib -->
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
<!-- excludeTransitive:是否不包含间接依赖包,比如我们依赖A,但是A又依赖了B,我们是否也要把B打进去 默认不打-->
|
<excludeTransitive>false</excludeTransitive>
|
<!-- 复制的jar文件去掉版本信息 -->
|
<stripVersion>false</stripVersion>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
<layout>ZIP</layout>
|
<mainClass>com.dy.pmsPlatform.PmsPlatformApplication</mainClass>
|
<includes>
|
<include>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-common</artifactId>
|
</include>
|
<include>
|
<groupId>com.dy</groupId>
|
<artifactId>pms-global</artifactId>
|
</include>
|
</includes>
|
<excludes>
|
<exclude>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
</exclude>
|
</excludes>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<plugin>
|
<!-- 设置java编译版本,运行环境版本 -->
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
<!-- source: 源代码编译版本;target: 目标平台编译版本;encoding: 字符集编码。 -->
|
<configuration>
|
<source>${java.version}</source>
|
<target>${java.version}</target>
|
<encoding>${encoding}</encoding>
|
</configuration>
|
</plugin>
|
<plugin>
|
<!-- 解决资源文件的编码问题 -->
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-resources-plugin</artifactId>
|
<configuration>
|
<encoding>${encoding}</encoding>
|
</configuration>
|
</plugin>
|
<plugin>
|
<!-- maven里执行测试用例的插件 -->
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
<configuration>
|
<skipTests>true</skipTests>
|
</configuration>
|
</plugin>
|
<plugin>
|
<!-- 下面解决:当进行Maven Lifecycle package时报错:Could not find artifact org.apache.mina:mina-core:bundle:2.2.1 in maven (https://repo1.maven.org/maven2/)-->
|
<groupId>org.apache.felix</groupId>
|
<artifactId>maven-bundle-plugin</artifactId>
|
<extensions>true</extensions>
|
</plugin>
|
</plugins>
|
</build>
|
</project>
|