pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-cms</artifactId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>zheng-cms-rpc-service</artifactId>
  10. <packaging>jar</packaging>
  11. <name>zheng-cms-rpc-service</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.zheng</groupId>
  16. <artifactId>zheng-cms-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-cms-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. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <version>2.6</version>
  81. <configuration>
  82. <archive>
  83. <manifest>
  84. <addClasspath>true</addClasspath>
  85. <classpathPrefix>lib/</classpathPrefix>
  86. <mainClass>com.zheng.cms.rpc.ZhengCmsRpcServiceApplication</mainClass>
  87. </manifest>
  88. </archive>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-dependency-plugin</artifactId>
  94. <version>2.10</version>
  95. <executions>
  96. <execution>
  97. <id>copy-dependencies</id>
  98. <phase>package</phase>
  99. <goals>
  100. <goal>copy-dependencies</goal>
  101. </goals>
  102. <configuration>
  103. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </project>