pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.zheng</groupId>
  6. <artifactId>zheng-pay</artifactId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>zheng-pay-rpc-service</artifactId>
  10. <packaging>jar</packaging>
  11. <name>zheng-pay-rpc-service</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.zheng</groupId>
  16. <artifactId>zheng-pay-rpc-api</artifactId>
  17. <version>1.0.0</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>junit</groupId>
  21. <artifactId>junit</artifactId>
  22. <version>4.12</version>
  23. <scope>test</scope>
  24. </dependency>
  25. </dependencies>
  26. <profiles>
  27. <profile>
  28. <id>dev</id>
  29. <properties>
  30. <env>dev</env>
  31. </properties>
  32. <activation>
  33. <activeByDefault>true</activeByDefault>
  34. </activation>
  35. </profile>
  36. <profile>
  37. <id>test</id>
  38. <properties>
  39. <env>test</env>
  40. </properties>
  41. </profile>
  42. <profile>
  43. <id>prod</id>
  44. <properties>
  45. <env>prod</env>
  46. </properties>
  47. </profile>
  48. </profiles>
  49. <build>
  50. <finalName>zheng-pay-rpc-service</finalName>
  51. <filters>
  52. <filter>src/main/resources/profiles/${env}.properties</filter>
  53. </filters>
  54. <resources>
  55. <resource>
  56. <directory>src/main/resources</directory>
  57. <filtering>true</filtering>
  58. </resource>
  59. <resource>
  60. <directory>src/main/java</directory>
  61. <includes>
  62. <include>**/*.xml</include>
  63. <include>**/*.properties</include>
  64. </includes>
  65. <filtering>true</filtering>
  66. </resource>
  67. </resources>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-deploy-plugin</artifactId>
  72. <version>2.4</version>
  73. <configuration>
  74. <skip>true</skip>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <version>2.4</version>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-assembly-plugin</artifactId>
  84. <configuration>
  85. <descriptor>src/main/assembly/assembly.xml</descriptor>
  86. </configuration>
  87. <executions>
  88. <execution>
  89. <id>make-assembly</id>
  90. <phase>package</phase>
  91. <goals>
  92. <goal>single</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>2.3.2</version>
  100. <configuration>
  101. <source>1.7</source>
  102. <target>1.7</target>
  103. <encoding>UTF-8</encoding>
  104. </configuration>
  105. <dependencies>
  106. <dependency>
  107. <groupId>org.codehaus.plexus</groupId>
  108. <artifactId>plexus-compiler-javac</artifactId>
  109. <version>1.8.1</version>
  110. </dependency>
  111. </dependencies>
  112. </plugin>
  113. <plugin>
  114. <artifactId>maven-resources-plugin</artifactId>
  115. <version>2.6</version>
  116. <configuration>
  117. <encoding>UTF-8</encoding>
  118. </configuration>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-surefire-plugin</artifactId>
  123. <version>2.10</version>
  124. <configuration>
  125. <skip>true</skip>
  126. <testFailureIgnore>true</testFailureIgnore>
  127. </configuration>
  128. </plugin>
  129. </plugins>
  130. </build>
  131. </project>