pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>com.persagy</groupId>
  7. <artifactId>dmp</artifactId>
  8. <version>4.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>com.persagy</groupId>
  12. <artifactId>dmp-rwd</artifactId>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.persagy</groupId>
  16. <artifactId>dmp-model</artifactId>
  17. <version>4.0.0</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.persagy</groupId>
  21. <artifactId>dmp-common</artifactId>
  22. <version>4.0.0</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.persagy</groupId>
  26. <artifactId>dmp-rwd-funcid-parser</artifactId>
  27. <version>4.0.0</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-data-jpa</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.alibaba</groupId>
  43. <artifactId>druid</artifactId>
  44. <version>1.1.21</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.querydsl</groupId>
  48. <artifactId>querydsl-apt</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.querydsl</groupId>
  52. <artifactId>querydsl-sql</artifactId>
  53. <version>${querydsl.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.querydsl</groupId>
  57. <artifactId>querydsl-jpa</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.vladmihalcea</groupId>
  61. <artifactId>hibernate-types-52</artifactId>
  62. <version>2.9.13</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-actuator</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-web</artifactId>
  71. </dependency>
  72. <!-- 注册中心 -->
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  76. </dependency>
  77. <!-- 配置中心 -->
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-starter-config</artifactId>
  81. </dependency>
  82. <!-- rabbitmq -->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-amqp</artifactId>
  86. </dependency>
  87. <!-- feign -->
  88. <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-starter-openfeign</artifactId>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <finalName>dmp-rwd</finalName>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-maven-plugin</artifactId>
  99. <configuration>
  100. <fork>true</fork>
  101. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>repackage</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <!--
  112. -->
  113. <plugin>
  114. <groupId>com.mysema.maven</groupId>
  115. <artifactId>apt-maven-plugin</artifactId>
  116. <version>1.1.3</version>
  117. <executions>
  118. <execution>
  119. <phase>generate-sources</phase>
  120. <goals>
  121. <goal>process</goal>
  122. </goals>
  123. <configuration>
  124. <outputDirectory>target/generated-sources</outputDirectory>
  125. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <!--拷贝资源文件 copy-resources-->
  131. <plugin>
  132. <artifactId>maven-resources-plugin</artifactId>
  133. <executions>
  134. <execution>
  135. <id>copy-resources</id>
  136. <phase>package</phase>
  137. <goals>
  138. <goal>copy-resources</goal>
  139. </goals>
  140. <configuration>
  141. <resources>
  142. <resource>
  143. <directory>src/main/resources/</directory>
  144. <includes>
  145. <include>**/*.yml</include>
  146. </includes>
  147. </resource>
  148. <resource>
  149. <directory>${project.build.directory}</directory>
  150. <includes>
  151. <include>**/version.txt</include>
  152. </includes>
  153. </resource>
  154. </resources>
  155. <outputDirectory>${project.build.directory}/config</outputDirectory>
  156. </configuration>
  157. </execution>
  158. <!--拷贝启动脚本-->
  159. <execution>
  160. <id>copy-version</id>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>copy-resources</goal>
  164. </goals>
  165. <configuration>
  166. <resources>
  167. <resource>
  168. <directory>src/script</directory>
  169. </resource>
  170. </resources>
  171. <outputDirectory>${project.build.directory}</outputDirectory>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <!-- 按照测试要求打成zip需要的配置 -->
  177. <!--获取git信息-->
  178. <plugin>
  179. <groupId>pl.project13.maven</groupId>
  180. <artifactId>git-commit-id-plugin</artifactId>
  181. <executions>
  182. <execution>
  183. <goals>
  184. <goal>revision</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. <configuration>
  189. <verbose>true</verbose>
  190. <dateFormat>yyyyMMddHHmm</dateFormat>
  191. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  192. <!--<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>-->
  193. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  194. </configuration>
  195. </plugin>
  196. <!-- 打包压缩 -->
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-assembly-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <id>make-assembly</id>
  203. <!-- 当执行mvn package时才会打包 -->
  204. <phase>package</phase>
  205. <goals>
  206. <goal>single</goal>
  207. </goals>
  208. <configuration>
  209. <finalName>
  210. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  211. </finalName>
  212. <!--不包含assembly id-->
  213. <appendAssemblyId>false</appendAssemblyId>
  214. <!--输出路径-->
  215. <!--<outputDirectory>../target/co_search-${project.version}</outputDirectory>-->
  216. <descriptors>
  217. <descriptor>src/script/zip.xml</descriptor>
  218. </descriptors>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. </project>