pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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.20</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.querydsl</groupId>
  48. <artifactId>querydsl-apt</artifactId>
  49. <!--<exclusions>
  50. <exclusion>
  51. <artifactId>guava</artifactId>
  52. <groupId>com.google.guava</groupId>
  53. </exclusion>
  54. <exclusion>
  55. <artifactId>javassist</artifactId>
  56. <groupId>org.javassist</groupId>
  57. </exclusion>
  58. </exclusions>-->
  59. </dependency>
  60. <dependency>
  61. <groupId>com.querydsl</groupId>
  62. <artifactId>querydsl-sql</artifactId>
  63. <version>${querydsl.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.querydsl</groupId>
  67. <artifactId>querydsl-jpa</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.vladmihalcea</groupId>
  71. <artifactId>hibernate-types-52</artifactId>
  72. <version>2.9.13</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-actuator</artifactId>
  77. </dependency>
  78. <!--<dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-web</artifactId>
  81. </dependency>-->
  82. <!-- 注册中心 -->
  83. <dependency>
  84. <groupId>org.springframework.cloud</groupId>
  85. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  86. <!--<exclusions>
  87. <exclusion>
  88. <artifactId>guava</artifactId>
  89. <groupId>com.google.guava</groupId>
  90. </exclusion>
  91. </exclusions>-->
  92. </dependency>
  93. <!-- 配置中心 -->
  94. <dependency>
  95. <groupId>org.springframework.cloud</groupId>
  96. <artifactId>spring-cloud-starter-config</artifactId>
  97. </dependency>
  98. <!-- rabbitmq -->
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-amqp</artifactId>
  102. </dependency>
  103. <!-- feign -->
  104. <dependency>
  105. <groupId>org.springframework.cloud</groupId>
  106. <artifactId>spring-cloud-starter-openfeign</artifactId>
  107. <!--<exclusions>
  108. <exclusion>
  109. <artifactId>HdrHistogram</artifactId>
  110. <groupId>org.hdrhistogram</groupId>
  111. </exclusion>
  112. </exclusions>-->
  113. </dependency>
  114. </dependencies>
  115. <build>
  116. <finalName>dmp-rwd</finalName>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. <configuration>
  122. <fork>true</fork>
  123. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <goals>
  128. <goal>repackage</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <!--
  134. -->
  135. <plugin>
  136. <groupId>com.mysema.maven</groupId>
  137. <artifactId>apt-maven-plugin</artifactId>
  138. <version>1.1.3</version>
  139. <executions>
  140. <execution>
  141. <phase>generate-sources</phase>
  142. <goals>
  143. <goal>process</goal>
  144. </goals>
  145. <configuration>
  146. <outputDirectory>target/generated-sources</outputDirectory>
  147. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <!--拷贝资源文件 copy-resources-->
  153. <plugin>
  154. <artifactId>maven-resources-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>copy-resources</id>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>copy-resources</goal>
  161. </goals>
  162. <configuration>
  163. <resources>
  164. <resource>
  165. <directory>src/main/resources/</directory>
  166. <includes>
  167. <include>**/*.yml</include>
  168. </includes>
  169. </resource>
  170. <resource>
  171. <directory>${project.build.directory}</directory>
  172. <includes>
  173. <include>**/version.txt</include>
  174. </includes>
  175. </resource>
  176. </resources>
  177. <outputDirectory>${project.build.directory}/config</outputDirectory>
  178. </configuration>
  179. </execution>
  180. <!--拷贝启动脚本-->
  181. <execution>
  182. <id>copy-version</id>
  183. <phase>package</phase>
  184. <goals>
  185. <goal>copy-resources</goal>
  186. </goals>
  187. <configuration>
  188. <resources>
  189. <resource>
  190. <directory>src/script</directory>
  191. </resource>
  192. </resources>
  193. <outputDirectory>${project.build.directory}</outputDirectory>
  194. </configuration>
  195. </execution>
  196. </executions>
  197. </plugin>
  198. <!-- 按照测试要求打成zip需要的配置 -->
  199. <!--获取git信息-->
  200. <plugin>
  201. <groupId>pl.project13.maven</groupId>
  202. <artifactId>git-commit-id-plugin</artifactId>
  203. <executions>
  204. <execution>
  205. <goals>
  206. <goal>revision</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. <configuration>
  211. <verbose>true</verbose>
  212. <dateFormat>yyyyMMddHHmm</dateFormat>
  213. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  214. <!--<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>-->
  215. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  216. </configuration>
  217. </plugin>
  218. <!-- 打包压缩 -->
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-assembly-plugin</artifactId>
  222. <executions>
  223. <execution>
  224. <id>make-assembly</id>
  225. <!-- 当执行mvn package时才会打包 -->
  226. <phase>package</phase>
  227. <goals>
  228. <goal>single</goal>
  229. </goals>
  230. <configuration>
  231. <finalName>
  232. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  233. </finalName>
  234. <!--不包含assembly id-->
  235. <appendAssemblyId>false</appendAssemblyId>
  236. <!--输出路径-->
  237. <!--<outputDirectory>../target/co_search-${project.version}</outputDirectory>-->
  238. <descriptors>
  239. <descriptor>src/script/zip.xml</descriptor>
  240. </descriptors>
  241. </configuration>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. </project>