<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>cn.huge</groupId>
|
<artifactId>dyh-mediate</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
<packaging>jar</packaging>
|
|
<name>dyh-mediate</name>
|
<description>广州市综治中心应用平台矛调模块-调解中心微服务</description>
|
|
<parent>
|
<groupId>cn.huge</groupId>
|
<artifactId>dyh-service</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</parent>
|
|
<properties>
|
<flowable.version>6.4.2</flowable.version>
|
<liquibase-core.version>3.6.3</liquibase-core.version>
|
<xylink-cloudsdk.version>3.5.1</xylink-cloudsdk.version>
|
<aspose-word.version>21.1.0</aspose-word.version>
|
<commons-net.version>3.1</commons-net.version>
|
</properties>
|
|
<dependencies>
|
<!-- thymeleaf模板依赖 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
</dependency>
|
<!-- thymeleaf模板依赖 end -->
|
|
<!-- 公共框架mybatisPlus版 -->
|
<dependency>
|
<groupId>cn.huge</groupId>
|
<artifactId>dyh-base</artifactId>
|
<version>1.0.0-SNAPSHOT</version>
|
</dependency>
|
<!-- 公共框架mybatisPlus版 end -->
|
|
<!-- springboot test -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
<scope>test</scope>
|
</dependency>
|
<!-- springboot test end -->
|
|
<!-- lombok -->
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
</dependency>
|
<!-- lombok end -->
|
|
<!-- junit -->
|
<dependency>
|
<groupId>junit</groupId>
|
<artifactId>junit</artifactId>
|
<scope>test</scope>
|
</dependency>
|
<!-- junit end -->
|
|
<!-- flowable -->
|
<dependency>
|
<groupId>org.flowable</groupId>
|
<artifactId>flowable-spring-boot-starter</artifactId>
|
<version>${flowable.version}</version>
|
<exclusions>
|
<exclusion>
|
<artifactId>commons-io</artifactId>
|
<groupId>commons-io</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>joda-time</artifactId>
|
<groupId>joda-time</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>slf4j-api</artifactId>
|
<groupId>org.slf4j</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>commons-logging</artifactId>
|
<groupId>commons-logging</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>liquibase-core</artifactId>
|
<groupId>org.liquibase</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<!--流程设计器-->
|
<dependency>
|
<groupId>org.flowable</groupId>
|
<artifactId>flowable-ui-modeler-rest</artifactId>
|
<version>${flowable.version}</version>
|
<exclusions>
|
<exclusion>
|
<artifactId>commons-io</artifactId>
|
<groupId>commons-io</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>slf4j-api</artifactId>
|
<groupId>org.slf4j</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>commons-collections</artifactId>
|
<groupId>commons-collections</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>guava</artifactId>
|
<groupId>com.google.guava</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<!--路由配置-->
|
<dependency>
|
<groupId>org.flowable</groupId>
|
<artifactId>flowable-ui-modeler-conf</artifactId>
|
<version>${flowable.version}</version>
|
<exclusions>
|
<exclusion>
|
<artifactId>commons-io</artifactId>
|
<groupId>commons-io</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>liquibase-core</artifactId>
|
<groupId>org.liquibase</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<dependency>
|
<groupId>org.flowable</groupId>
|
<artifactId>flowable-ui-modeler-logic</artifactId>
|
<version>${flowable.version}</version>
|
<exclusions>
|
<exclusion>
|
<artifactId>guava</artifactId>
|
<groupId>com.google.guava</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>slf4j-api</artifactId>
|
<groupId>org.slf4j</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>commons-collections</artifactId>
|
<groupId>commons-collections</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>commons-io</artifactId>
|
<groupId>commons-io</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<!-- flowable end -->
|
|
<dependency>
|
<groupId>org.liquibase</groupId>
|
<artifactId>liquibase-core</artifactId>
|
<version>${liquibase-core.version}</version>
|
</dependency>
|
|
<!-- xylink -->
|
<dependency>
|
<groupId>xylink.cloudsdk</groupId>
|
<artifactId>xylink-cloudsdk</artifactId>
|
<version>${xylink-cloudsdk.version}</version>
|
</dependency>
|
<!-- xylink end -->
|
|
<!-- aspose-word -->
|
<dependency>
|
<groupId>aspose.word</groupId>
|
<artifactId>aspose-word</artifactId>
|
<version>${aspose-word.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework</groupId>
|
<artifactId>spring-webflux</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.projectreactor</groupId>
|
<artifactId>reactor-core</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.projectreactor.netty</groupId>
|
<artifactId>reactor-netty-http</artifactId>
|
</dependency>
|
<!-- aspose-word end -->
|
|
<!-- net -->
|
<dependency>
|
<groupId>commons-net</groupId>
|
<artifactId>commons-net</artifactId>
|
<version>${commons-net.version}</version>
|
</dependency>
|
<!-- net end -->
|
|
</dependencies>
|
|
<build>
|
<finalName>dyh-mediate</finalName>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<configuration>
|
<!--重写包含依赖,包含不存在的依赖,jar里没有pom里的依赖 -->
|
<includes>
|
<include>
|
<groupId>null</groupId>
|
<artifactId>null</artifactId>
|
</include>
|
</includes>
|
<layout>ZIP</layout>
|
<!--使用外部配置文件,jar包里没有资源文件 -->
|
<addResources>true</addResources>
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
</configuration>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
<configuration>
|
<!--配置jar包特殊标识 配置后,保留原文件,生成新文件 *-run.jar -->
|
<!--配置jar包特殊标识 不配置,原文件命名为 *.jar.original,生成新文件 *.jar -->
|
<!--<classifier>run</classifier> -->
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-jar-plugin</artifactId>
|
<configuration>
|
<!--不打包资源文件 注意这玩意从编译结果目录开始算目录结构 -->
|
<excludes>
|
<!-- 选择性过滤 -->
|
<exclude>/**/*.yml</exclude>
|
<exclude>/src/main/resources/*.xml</exclude>
|
<exclude>/src/main/resources/config/*.xml</exclude>
|
<exclude>/**/*.properties</exclude>
|
<exclude>/**/*.conf</exclude>
|
</excludes>
|
|
<archive>
|
<manifest>
|
<addClasspath>true</addClasspath>
|
<classpathPrefix>lib/</classpathPrefix>
|
<useUniqueVersions>false</useUniqueVersions>
|
<mainClass>cn.huge.module.DyhMediateApplication</mainClass>
|
</manifest>
|
<manifestEntries>
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录 -->
|
<Class-Path>./config/</Class-Path>
|
</manifestEntries>
|
</archive>
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
</configuration>
|
</plugin>
|
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-dependencies</id>
|
<phase>prepare-package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
<configuration>
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<!--拷贝资源文件 copy-resources -->
|
<plugin>
|
<artifactId>maven-resources-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-resources</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-resources</goal>
|
</goals>
|
<configuration>
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<filtering>true</filtering>
|
<includes>
|
<include>*.xml</include>
|
<include>*.yml</include>
|
<include>*.properties</include>
|
<include>*.conf</include>
|
<include>*.json</include>
|
</includes>
|
</resource>
|
<resource>
|
<directory>src/main/resources/config</directory>
|
<filtering>true</filtering>
|
<includes>
|
<include>*.xml</include>
|
<include>*.yml</include>
|
<include>*.properties</include>
|
<include>*.conf</include>
|
</includes>
|
</resource>
|
</resources>
|
<outputDirectory>${project.build.directory}/config</outputDirectory>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
|
<!-- 打包时跳过测试 -->
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
<configuration>
|
<skipTests>true</skipTests>
|
</configuration>
|
</plugin>
|
|
<!-- 打包插件 -->
|
<plugin>
|
<artifactId>maven-assembly-plugin</artifactId>
|
<configuration>
|
<!--<finalName>${project.artifactId}</finalName>-->
|
<!-- 只使用finalName作为名字,不追加AssemblyId -->
|
<appendAssemblyId>false</appendAssemblyId>
|
<descriptors>
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
</descriptors>
|
<!-- 打包后输出目录 -->
|
<!--<outputDirectory>/Users/wangminzhao/tmp/lisp-install-pkg</outputDirectory>-->
|
</configuration>
|
<executions>
|
<execution>
|
<id>make-assembly</id>
|
<phase>package</phase>
|
<goals>
|
<goal>single</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
|
<resources>
|
<resource>
|
<directory>${basedir}/src/main/java</directory>
|
<includes>
|
<include>**/*.xml</include>
|
<include>**/*.json</include>
|
</includes>
|
</resource>
|
</resources>
|
</build>
|
|
|
</project>
|