pom.xml 12 KB

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