pom.xml 11 KB

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