pom.xml 11 KB

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