|
|
<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/maven-v4_0_0.xsd">
|
|
|
<parent>
|
|
|
<artifactId>docus-collector-server</artifactId>
|
|
|
<groupId>com.docus</groupId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</parent>
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<artifactId>docus-recovery</artifactId>
|
|
|
<name>Archetype - docus-recovery</name>
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>com.docus</groupId>
|
|
|
<artifactId>docus-api-common</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.freemarker</groupId>
|
|
|
<artifactId>freemarker</artifactId>
|
|
|
<version>2.3.30</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>cn.smallbun.screw</groupId>
|
|
|
<artifactId>screw-core</artifactId>
|
|
|
<version>1.0.3</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
<filtering>true</filtering>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<!--打包时去除第三方依赖-->
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<version>2.4.4</version>
|
|
|
<configuration>
|
|
|
<layout>ZIP</layout>
|
|
|
<includes>
|
|
|
<include>
|
|
|
<groupId>non-exists</groupId>
|
|
|
<artifactId>non-exists</artifactId>
|
|
|
</include>
|
|
|
</includes>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<goals>
|
|
|
<goal>repackage</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!--拷贝第三方依赖文件到指定目录-->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<id>copy-dependencies</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>copy-dependencies</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
|
|
|
<outputDirectory>target/lib</outputDirectory>
|
|
|
<excludeTransitive>false</excludeTransitive>
|
|
|
<stripVersion>false</stripVersion>
|
|
|
<includeScope>runtime</includeScope>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!-- copy资源文件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
<version>3.2.0</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>**/*.*</include>
|
|
|
</includes>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
<outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
<execution>
|
|
|
<id>copy-bin</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>copy-resources</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
<filtering>true</filtering>
|
|
|
<includes>
|
|
|
<include>bin/*.xml</include>
|
|
|
<include>bin/*.bat</include>
|
|
|
<include>*.yml</include>
|
|
|
<include>*.ftl</include>
|
|
|
</includes>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
<outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
<execution>
|
|
|
<id>copy-data-config</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>copy-resources</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>../../dataConfig</directory>
|
|
|
<filtering>true</filtering>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
<outputDirectory>${project.build.directory}/dataConfig</outputDirectory>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!-- 打jar包时忽略配置文件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
<version>3.2.0</version>
|
|
|
<configuration>
|
|
|
<excludes>
|
|
|
<exclude>**/*.yml</exclude>
|
|
|
</excludes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<configuration>
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
<descriptors>
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
</descriptors>
|
|
|
</configuration>
|
|
|
<id>make-assembly</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>single</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|