117 lines
3.9 KiB
XML
117 lines
3.9 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/maven-v4_0_0.xsd">
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
|
||
|
<parent>
|
||
|
<groupId>com.zheng</groupId>
|
||
|
<artifactId>zheng-pay</artifactId>
|
||
|
<version>1.0.0</version>
|
||
|
</parent>
|
||
|
|
||
|
<artifactId>zheng-pay-rpc-service</artifactId>
|
||
|
<packaging>jar</packaging>
|
||
|
|
||
|
<name>zheng-pay-rpc-service</name>
|
||
|
<url>http://www.zhangshuzheng.cn</url>
|
||
|
|
||
|
<dependencies>
|
||
|
<dependency>
|
||
|
<groupId>com.zheng</groupId>
|
||
|
<artifactId>zheng-pay-rpc-api</artifactId>
|
||
|
<version>1.0.0</version>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>junit</groupId>
|
||
|
<artifactId>junit</artifactId>
|
||
|
<version>4.12</version>
|
||
|
<scope>test</scope>
|
||
|
</dependency>
|
||
|
</dependencies>
|
||
|
|
||
|
<profiles>
|
||
|
<profile>
|
||
|
<id>dev</id>
|
||
|
<properties>
|
||
|
<env>dev</env>
|
||
|
</properties>
|
||
|
<activation>
|
||
|
<activeByDefault>true</activeByDefault>
|
||
|
</activation>
|
||
|
</profile>
|
||
|
<profile>
|
||
|
<id>test</id>
|
||
|
<properties>
|
||
|
<env>test</env>
|
||
|
</properties>
|
||
|
</profile>
|
||
|
<profile>
|
||
|
<id>prod</id>
|
||
|
<properties>
|
||
|
<env>prod</env>
|
||
|
</properties>
|
||
|
</profile>
|
||
|
</profiles>
|
||
|
|
||
|
<build>
|
||
|
<finalName>zheng-pay-rpc-service</finalName>
|
||
|
<filters>
|
||
|
<filter>src/main/resources/profiles/${env}.properties</filter>
|
||
|
</filters>
|
||
|
<resources>
|
||
|
<resource>
|
||
|
<directory>src/main/java</directory>
|
||
|
<includes>
|
||
|
<include>**/*.xml</include>
|
||
|
</includes>
|
||
|
<filtering>true</filtering>
|
||
|
</resource>
|
||
|
<resource>
|
||
|
<directory>src/main/resources</directory>
|
||
|
<filtering>true</filtering>
|
||
|
</resource>
|
||
|
</resources>
|
||
|
<plugins>
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||
|
<version>2.18.1</version>
|
||
|
<configuration>
|
||
|
<skipTests>true</skipTests>
|
||
|
<testFailureIgnore>true</testFailureIgnore>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-jar-plugin</artifactId>
|
||
|
<version>2.6</version>
|
||
|
<configuration>
|
||
|
<archive>
|
||
|
<manifest>
|
||
|
<addClasspath>true</addClasspath>
|
||
|
<classpathPrefix>lib/</classpathPrefix>
|
||
|
<mainClass>com.zheng.pay.rpc.ZhengPayRpcServiceApplication</mainClass>
|
||
|
</manifest>
|
||
|
</archive>
|
||
|
</configuration>
|
||
|
</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>${project.build.directory}/lib</outputDirectory>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
</project>
|