pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. <dependency>
  83. <groupId>cn.hutool</groupId>
  84. <artifactId>hutool-all</artifactId>
  85. <version>5.5.8</version>
  86. </dependency>
  87. <!-- 注册中心 -->
  88. <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  91. <!--<exclusions>
  92. <exclusion>
  93. <artifactId>guava</artifactId>
  94. <groupId>com.google.guava</groupId>
  95. </exclusion>
  96. </exclusions>-->
  97. </dependency>
  98. <!-- 配置中心 -->
  99. <dependency>
  100. <groupId>org.springframework.cloud</groupId>
  101. <artifactId>spring-cloud-starter-config</artifactId>
  102. </dependency>
  103. <!-- rabbitmq -->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-amqp</artifactId>
  107. </dependency>
  108. <!-- feign -->
  109. <dependency>
  110. <groupId>org.springframework.cloud</groupId>
  111. <artifactId>spring-cloud-starter-openfeign</artifactId>
  112. <!--<exclusions>
  113. <exclusion>
  114. <artifactId>HdrHistogram</artifactId>
  115. <groupId>org.hdrhistogram</groupId>
  116. </exclusion>
  117. </exclusions>-->
  118. </dependency>
  119. <!--<dependency>
  120. <groupId>com.persagy</groupId>
  121. <artifactId>fm-package</artifactId>
  122. <type>pom</type>
  123. </dependency>-->
  124. </dependencies>
  125. <build>
  126. <finalName>dmp-rwd</finalName>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-maven-plugin</artifactId>
  131. <configuration>
  132. <fork>true</fork>
  133. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <goals>
  138. <goal>repackage</goal>
  139. </goals>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. <!--
  144. -->
  145. <plugin>
  146. <groupId>com.mysema.maven</groupId>
  147. <artifactId>apt-maven-plugin</artifactId>
  148. <version>1.1.3</version>
  149. <executions>
  150. <execution>
  151. <phase>generate-sources</phase>
  152. <goals>
  153. <goal>process</goal>
  154. </goals>
  155. <configuration>
  156. <outputDirectory>target/generated-sources</outputDirectory>
  157. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  158. </configuration>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <artifactId>maven-resources-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <id>copy-resources</id>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>copy-resources</goal>
  170. </goals>
  171. <configuration>
  172. <resources>
  173. <resource>
  174. <directory>src/main/resources/</directory>
  175. <includes>
  176. <include>**/*.yml</include>
  177. </includes>
  178. </resource>
  179. </resources>
  180. <outputDirectory>${project.build.directory}/config</outputDirectory>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <!--拷贝资源文件 copy-resources
  186. <plugin>
  187. <artifactId>maven-resources-plugin</artifactId>
  188. <executions>
  189. <execution>
  190. <id>copy-resources</id>
  191. <phase>package</phase>
  192. <goals>
  193. <goal>copy-resources</goal>
  194. </goals>
  195. <configuration>
  196. <resources>
  197. <resource>
  198. <directory>src/main/resources/</directory>
  199. <includes>
  200. <include>**/*.yml</include>
  201. </includes>
  202. </resource>
  203. <resource>
  204. <directory>${project.build.directory}</directory>
  205. <includes>
  206. <include>**/version.txt</include>
  207. </includes>
  208. </resource>
  209. </resources>
  210. <outputDirectory>${project.build.directory}/config</outputDirectory>
  211. </configuration>
  212. </execution>
  213. &lt;!&ndash;&lt;!&ndash;拷贝启动脚本&ndash;&gt;
  214. <execution>
  215. <id>copy-version</id>
  216. <phase>package</phase>
  217. <goals>
  218. <goal>copy-resources</goal>
  219. </goals>
  220. <configuration>
  221. <resources>
  222. <resource>
  223. <directory>src/script</directory>
  224. </resource>
  225. </resources>
  226. <outputDirectory>${project.build.directory}</outputDirectory>
  227. </configuration>
  228. </execution>&ndash;&gt;
  229. </executions>
  230. </plugin>-->
  231. <!--&lt;!&ndash; 按照测试要求打成zip需要的配置 &ndash;&gt;
  232. &lt;!&ndash;获取git信息&ndash;&gt;
  233. <plugin>
  234. <groupId>pl.project13.maven</groupId>
  235. <artifactId>git-commit-id-plugin</artifactId>
  236. <executions>
  237. <execution>
  238. <goals>
  239. <goal>revision</goal>
  240. </goals>
  241. </execution>
  242. </executions>
  243. <configuration>
  244. <verbose>true</verbose>
  245. <dateFormat>yyyyMMddHHmm</dateFormat>
  246. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  247. &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;
  248. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  249. </configuration>
  250. </plugin>
  251. &lt;!&ndash; 打包压缩 &ndash;&gt;
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-assembly-plugin</artifactId>
  255. <executions>
  256. <execution>
  257. <id>make-assembly</id>
  258. &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;
  259. <phase>package</phase>
  260. <goals>
  261. <goal>single</goal>
  262. </goals>
  263. <configuration>
  264. <finalName>
  265. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  266. </finalName>
  267. &lt;!&ndash;不包含assembly id&ndash;&gt;
  268. <appendAssemblyId>false</appendAssemblyId>
  269. &lt;!&ndash;输出路径&ndash;&gt;
  270. &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;
  271. <descriptors>
  272. <descriptor>../script/zip.xml</descriptor>
  273. </descriptors>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>-->
  278. </plugins>
  279. </build>
  280. </project>