461 lines
19 KiB
XML
461 lines
19 KiB
XML
<?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>com.pudonghot.yo</groupId>
|
||
<artifactId>yo</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
<packaging>pom</packaging>
|
||
<name>Yo</name>
|
||
<description>Yo</description>
|
||
|
||
<properties>
|
||
<java.version>1.8</java.version>
|
||
<maven.compiler.source>1.8</maven.compiler.source>
|
||
<maven.compiler.target>1.8</maven.compiler.target>
|
||
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
||
|
||
<yo.version>0.0.1-SNAPSHOT</yo.version>
|
||
<tigon.version>0.0.1-SNAPSHOT</tigon.version>
|
||
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
|
||
<apache.dubbo.version>2.7.4.1</apache.dubbo.version>
|
||
</properties>
|
||
|
||
<organization>
|
||
<name>Pudonghot</name>
|
||
<url>http://www.pudonghot.com</url>
|
||
</organization>
|
||
|
||
<modules>
|
||
<module>lib</module>
|
||
<module>fsagent</module>
|
||
<module>state</module>
|
||
<module>cms</module>
|
||
<module>openapi</module>
|
||
<module>campaign</module>
|
||
</modules>
|
||
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.google.guava</groupId>
|
||
<artifactId>guava</artifactId>
|
||
<version>21.0</version>
|
||
</dependency>
|
||
<!-- 低版本IDEA使用JUnit 5执行单元测试报错,排除Jupiter -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<artifactId>junit-jupiter</artifactId>
|
||
<groupId>org.junit.jupiter</groupId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<artifactId>mockito-junit-jupiter</artifactId>
|
||
<groupId>org.mockito</groupId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.data</groupId>
|
||
<artifactId>spring-data-releasetrain</artifactId>
|
||
<version>Moore-SR7</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<!--Tigon-->
|
||
<dependency>
|
||
<groupId>com.wacai.tigon</groupId>
|
||
<artifactId>tigon</artifactId>
|
||
<version>${tigon.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<!--/Tigon-->
|
||
<dependency>
|
||
<groupId>com.pudonghot.yo</groupId>
|
||
<artifactId>yo-bom</artifactId>
|
||
<version>${yo.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies -->
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-dependencies</artifactId>
|
||
<version>Hoxton.SR1</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<!-- Apache Curator会引入较低版本Jackson,需要在Tigon后面引入 -->
|
||
<dependency>
|
||
<groupId>org.apache.curator</groupId>
|
||
<artifactId>apache-curator</artifactId>
|
||
<version>4.0.1</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.zookeeper</groupId>
|
||
<artifactId>zookeeper</artifactId>
|
||
<version>3.4.14</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>log4j</groupId>
|
||
<artifactId>log4j</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-log4j12</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.dubbo</groupId>
|
||
<artifactId>dubbo-spring-boot-starter</artifactId>
|
||
<version>${apache.dubbo.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.dubbo</groupId>
|
||
<artifactId>dubbo-dependencies-zookeeper</artifactId>
|
||
<version>${apache.dubbo.version}</version>
|
||
<type>pom</type>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-compress</artifactId>
|
||
<version>1.18</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-text</artifactId>
|
||
<version>1.6</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-beanutils</groupId>
|
||
<artifactId>commons-beanutils</artifactId>
|
||
<exclusions>
|
||
<exclusion>
|
||
<artifactId>commons-logging</artifactId>
|
||
<groupId>commons-logging</groupId>
|
||
</exclusion>
|
||
</exclusions>
|
||
<version>1.9.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.belerweb</groupId>
|
||
<artifactId>pinyin4j</artifactId>
|
||
<version>2.5.1</version>
|
||
</dependency>
|
||
<!-- Database -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid</artifactId>
|
||
<version>1.1.10</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>6.0.6</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.6</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<configuration>
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
<pluginManagement>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>2.7</version>
|
||
<configuration>
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.7.0</version>
|
||
<configuration>
|
||
<source>${maven.compiler.source}</source>
|
||
<target>${maven.compiler.target}</target>
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
<compilerArgs>
|
||
<!--<arg>-verbose</arg>-->
|
||
<!--<arg>-Xlint:all,-options,-path</arg>-->
|
||
<arg>-Xlint:unchecked</arg>
|
||
</compilerArgs>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
<version>2.4</version>
|
||
<executions>
|
||
<execution>
|
||
<id>attach-sources</id>
|
||
<phase>install</phase>
|
||
<goals>
|
||
<goal>jar-no-fork</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<version>2.10</version>
|
||
<!--
|
||
<executions>
|
||
<execution>
|
||
<id>copy-dependencies</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-dependencies</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>
|
||
target/lib
|
||
</outputDirectory>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
-->
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<version>2.6</version>
|
||
<configuration>
|
||
<archive>
|
||
<manifest>
|
||
<addClasspath>true</addClasspath>
|
||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||
</manifest>
|
||
<manifestEntries>
|
||
<Built-By>Wacai</Built-By>
|
||
</manifestEntries>
|
||
</archive>
|
||
<excludes>
|
||
<exclude>bootstrap*.properties</exclude>
|
||
<exclude>config/bootstrap*.properties</exclude>
|
||
<exclude>bootstrap*.yml</exclude>
|
||
<exclude>config/bootstrap*.yml</exclude>
|
||
<exclude>application*.properties</exclude>
|
||
<exclude>config/application*.properties</exclude>
|
||
<exclude>application*.yml</exclude>
|
||
<exclude>config/application*.yml</exclude>
|
||
<exclude>log4j2*.xml</exclude>
|
||
<exclude>log4j2*.yml</exclude>
|
||
<exclude>logback*.xml</exclude>
|
||
<exclude>logback*.yml</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<configuration>
|
||
<addResources>true</addResources>
|
||
<layout>ZIP</layout>
|
||
<includeSystemScope>true</includeSystemScope>
|
||
<environmentVariables>
|
||
<project.basedir>${project.basedir}</project.basedir>
|
||
<project.artifactId>${project.artifactId}</project.artifactId>
|
||
<GROUP>${project.groupId}</GROUP>
|
||
<ARTIFACT>${project.artifactId}</ARTIFACT>
|
||
<APP_NAME>${project.artifactId}</APP_NAME>
|
||
</environmentVariables>
|
||
<excludes>
|
||
<exclude>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-help-plugin</artifactId>
|
||
<version>2.2</version>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.eclipse.m2e</groupId>
|
||
<artifactId>lifecycle-mapping</artifactId>
|
||
<version>1.0.0</version>
|
||
<configuration>
|
||
<lifecycleMappingMetadata>
|
||
<pluginExecutions>
|
||
<pluginExecution>
|
||
<pluginExecutionFilter>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-clean-plugin</artifactId>
|
||
<versionRange>
|
||
[2.6.1,)
|
||
</versionRange>
|
||
<goals>
|
||
<goal>clean</goal>
|
||
</goals>
|
||
</pluginExecutionFilter>
|
||
<action>
|
||
<ignore />
|
||
</action>
|
||
</pluginExecution>
|
||
</pluginExecutions>
|
||
</lifecycleMappingMetadata>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>pl.project13.maven</groupId>
|
||
<artifactId>git-commit-id-plugin</artifactId>
|
||
<version>4.0.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>git-info</id>
|
||
<goals>
|
||
<goal>revision</goal>
|
||
</goals>
|
||
<phase>prepare-package</phase>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<prefix>git</prefix>
|
||
<verbose>false</verbose>
|
||
<failOnNoGitDirectory>true</failOnNoGitDirectory>
|
||
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
||
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.json</generateGitPropertiesFilename>
|
||
<format>json</format>
|
||
<gitDescribe>
|
||
<skip>false</skip>
|
||
<always>false</always>
|
||
<dirty>-dirty</dirty>
|
||
</gitDescribe>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</pluginManagement>
|
||
<!-- filter resources -->
|
||
<resources>
|
||
<resource>
|
||
<directory>src/main/java</directory>
|
||
<filtering>false</filtering>
|
||
<includes>
|
||
<include>**/*Mapper.xml</include>
|
||
</includes>
|
||
</resource>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<filtering>false</filtering>
|
||
<excludes>
|
||
<exclude>config_*.properties</exclude>
|
||
<exclude>application_*.properties</exclude>
|
||
<exclude>application_*.yml</exclude>
|
||
<exclude>log4j2_*.xml</exclude>
|
||
<exclude>logback_*.xml</exclude>
|
||
</excludes>
|
||
</resource>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<filtering>true</filtering>
|
||
<includes>
|
||
<include>**/*.xml</include>
|
||
<include>**/*.properties</include>
|
||
<include>**/*.txt</include>
|
||
</includes>
|
||
<excludes>
|
||
<exclude>config_*.properties</exclude>
|
||
<exclude>application_*.properties</exclude>
|
||
<exclude>application_*.yml</exclude>
|
||
<exclude>log4j2_*.xml</exclude>
|
||
<exclude>logback_*.xml</exclude>
|
||
</excludes>
|
||
</resource>
|
||
</resources>
|
||
<testResources>
|
||
<testResource>
|
||
<directory>src/test/resources</directory>
|
||
<filtering>false</filtering>
|
||
</testResource>
|
||
<testResource>
|
||
<directory>src/test/resources</directory>
|
||
<filtering>true</filtering>
|
||
<includes>
|
||
<include>**/*.txt</include>
|
||
<include>**/*.xml</include>
|
||
<include>**/*.properties</include>
|
||
</includes>
|
||
</testResource>
|
||
</testResources>
|
||
</build>
|
||
|
||
<repositories>
|
||
<repository>
|
||
<id>spring-releases</id>
|
||
<url>https://repo.spring.io/libs-release</url>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>spring-releases</id>
|
||
<url>https://repo.spring.io/libs-release</url>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
</project>
|