pom.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-api</artifactId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>zheng-api-rpc-service</artifactId>
  10. <packaging>jar</packaging>
  11. <name>zheng-api-rpc-service</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.zheng</groupId>
  16. <artifactId>zheng-api-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-api-rpc-service</finalName>
  51. <filters>
  52. <filter>src/main/resources/profiles/${env}.properties</filter>
  53. </filters>
  54. <resources>
  55. <resource>
  56. <directory>src/main/java</directory>
  57. <includes>
  58. <include>**/*.xml</include>
  59. </includes>
  60. <filtering>true</filtering>
  61. </resource>
  62. <resource>
  63. <directory>src/main/resources</directory>
  64. <filtering>true</filtering>
  65. </resource>
  66. </resources>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-surefire-plugin</artifactId>
  71. <version>2.18.1</version>
  72. <configuration>
  73. <skipTests>true</skipTests>
  74. <testFailureIgnore>true</testFailureIgnore>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. </build>
  79. </project>