pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. <artifactId>approve-core</artifactId>
  7. <groupId>com.dragoninfo.dcuc</groupId>
  8. <version>1.3.0-tjdsj-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>approve-core-service</artifactId>
  11. <modelVersion>4.0.0</modelVersion>
  12. <dependencies>
  13. <!--配置 duceap 开始-->
  14. <!-- 引入duceap-cloud核心包-->
  15. <dependency>
  16. <groupId>com.dragonsoft</groupId>
  17. <artifactId>duceap-cloud-starter</artifactId>
  18. <exclusions>
  19. <exclusion>
  20. <artifactId>HdrHistogram</artifactId>
  21. <groupId>org.hdrhistogram</groupId>
  22. </exclusion>
  23. </exclusions>
  24. </dependency>
  25. <!--基础-->
  26. <dependency>
  27. <groupId>com.dragonsoft</groupId>
  28. <artifactId>duceap-boot-starter</artifactId>
  29. <exclusions>
  30. <exclusion>
  31. <groupId>com.dragonsoft</groupId>
  32. <artifactId>duceap-core-repository-jpa</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. </dependency>
  36. <!--flyway模块-->
  37. <dependency>
  38. <groupId>com.dragonsoft</groupId>
  39. <artifactId>duceap-boot-starter-flyway</artifactId>
  40. </dependency>
  41. <!--配置中心-->
  42. <dependency>
  43. <groupId>com.dragoninfo</groupId>
  44. <artifactId>dcuc-duceap-api</artifactId>
  45. <exclusions>
  46. <exclusion>
  47. <groupId>com.dragonsoft.dyy</groupId>
  48. <artifactId>nosql-elasticsearch-api</artifactId>
  49. </exclusion>
  50. </exclusions>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.dragonsoft</groupId>
  54. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.dragonsoft</groupId>
  58. <artifactId>duceap-boot-starter-swagger</artifactId>
  59. </dependency>
  60. <!--MyBatis-Plus-->
  61. <dependency>
  62. <groupId>com.dragonsoft</groupId>
  63. <artifactId>duceap-boot-starter-mybatis</artifactId>
  64. </dependency>
  65. <!--配置 duceap 结束-->
  66. <!--配置第三方组件开始-->
  67. <!--mysql 引入-->
  68. <dependency>
  69. <groupId>mysql</groupId>
  70. <artifactId>mysql-connector-java</artifactId>
  71. </dependency>
  72. <!--配置第三方组件结束-->
  73. <!--配置 spring 开始-->
  74. <!--配置处理-->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-configuration-processor</artifactId>
  78. <optional>true</optional>
  79. </dependency>
  80. <!--kafka审计需要用到-->
  81. <dependency>
  82. <groupId>org.springframework.kafka</groupId>
  83. <artifactId>spring-kafka</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.dragonsoft</groupId>
  87. <artifactId>sm-tools-api</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.dragonsoft</groupId>
  91. <artifactId>sm-tools-local</artifactId>
  92. </dependency>
  93. <!--对接审计-->
  94. <!-- <dependency> -->
  95. <!-- <groupId>com.dragonsoft</groupId> -->
  96. <!-- <artifactId>auditlog-qm-tj</artifactId> -->
  97. <!-- <exclusions> -->
  98. <!-- <exclusion> -->
  99. <!-- <artifactId>joda-time</artifactId> -->
  100. <!-- <groupId>joda-time</groupId> -->
  101. <!-- </exclusion> -->
  102. <!-- </exclusions> -->
  103. <!-- </dependency> -->
  104. <dependency>
  105. <groupId>com.dragonsoft</groupId>
  106. <artifactId>auditlog-qm-tj</artifactId>
  107. <version>1.0.3-SNAPSHOT</version>
  108. <scope>system</scope>
  109. <systemPath>${project.basedir}\src\main\lib\auditlog-qm-tj-1.0.3-SNAPSHOT.jar</systemPath>
  110. </dependency>
  111. <!--对接审计-->
  112. <!--测试-->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-test</artifactId>
  116. <scope>test</scope>
  117. <exclusions>
  118. <exclusion>
  119. <artifactId>junit-jupiter</artifactId>
  120. <groupId>org.junit.jupiter</groupId>
  121. </exclusion>
  122. <exclusion>
  123. <artifactId>mockito-junit-jupiter</artifactId>
  124. <groupId>org.mockito</groupId>
  125. </exclusion>
  126. </exclusions>
  127. </dependency>
  128. <dependency>
  129. <groupId>junit</groupId>
  130. <artifactId>junit</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. <!--配置 spring 结束-->
  134. <!--redis-->
  135. <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-starter-data-redis</artifactId>
  138. <version>2.1.8.RELEASE</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>redis.clients</groupId>
  142. <artifactId>jedis</artifactId>
  143. <version>2.9.3</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.auth0</groupId>
  147. <artifactId>java-jwt</artifactId>
  148. <version>3.10.3</version>
  149. </dependency>
  150. <!--redis结束-->
  151. <dependency>
  152. <groupId>com.dragoninfo.dcuc</groupId>
  153. <artifactId>approve-api</artifactId>
  154. <version>${project.version}</version>
  155. <scope>compile</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.dragoninfo</groupId>
  159. <artifactId>dcuc-app-api</artifactId>
  160. <version>2.0.0-SNAPSHOT</version>
  161. </dependency>
  162. <!--工作流-->
  163. <!--nosql api依赖开始-->
  164. <dependency>
  165. <groupId>com.dragonsoft</groupId>
  166. <artifactId>dcms-mq-client-model</artifactId>
  167. <version>1.0-SNAPSHOT</version>
  168. </dependency>
  169. <!--nosql api依赖结束-->
  170. <!--kafka-->
  171. <dependency>
  172. <groupId>com.dragoninfo</groupId>
  173. <artifactId>dcuc-duceap-model</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.github.rholder</groupId>
  177. <artifactId>guava-retrying</artifactId>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.github.dreamhead</groupId>
  181. <artifactId>moco-core</artifactId>
  182. <scope>test</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.github.dreamhead</groupId>
  186. <artifactId>moco-junit</artifactId>
  187. <scope>test</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>it.ozimov</groupId>
  191. <artifactId>embedded-redis</artifactId>
  192. <scope>test</scope>
  193. <exclusions>
  194. <exclusion>
  195. <artifactId>slf4j-simple</artifactId>
  196. <groupId>org.slf4j</groupId>
  197. </exclusion>
  198. </exclusions>
  199. </dependency>
  200. </dependencies>
  201. <profiles>
  202. <profile>
  203. <id>jar</id>
  204. <activation>
  205. <activeByDefault>true</activeByDefault>
  206. </activation>
  207. <properties>
  208. <project.packaging>jar</project.packaging>
  209. </properties>
  210. <build>
  211. <plugins>
  212. <plugin>
  213. <artifactId>maven-dependency-plugin</artifactId>
  214. <version>2.6</version>
  215. <executions>
  216. <execution>
  217. <id>copy-libs</id>
  218. <phase>package</phase>
  219. <goals>
  220. <goal>copy-dependencies</goal>
  221. </goals>
  222. <configuration>
  223. <!--<excludeScope>provided</excludeScope>-->
  224. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  225. <!--取消依赖包的时间戳-->
  226. <useBaseVersion>true</useBaseVersion>
  227. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  228. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  229. </configuration>
  230. </execution>
  231. <execution>
  232. <id>unpack</id>
  233. <phase>package</phase>
  234. <goals>
  235. <goal>unpack</goal>
  236. </goals>
  237. <configuration>
  238. <artifactItems>
  239. <artifactItem>
  240. <groupId>com.dragonsoft</groupId>
  241. <artifactId>duceap-base</artifactId>
  242. <!--根据框架版本修改-->
  243. <version>${duceap.version}</version>
  244. <!--<version>2.1.0-SNAPSHOT</version>-->
  245. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  246. <!--加入平台的启动脚本-->
  247. <includes>META-INF/scripts/**</includes>
  248. </artifactItem>
  249. </artifactItems>
  250. </configuration>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <artifactId>maven-assembly-plugin</artifactId>
  256. <version>2.5.5</version>
  257. <executions>
  258. <execution>
  259. <id>make-assembly</id>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>single</goal>
  263. </goals>
  264. <configuration>
  265. <finalName>${project.name}-${project.version}</finalName>
  266. <appendAssemblyId>false</appendAssemblyId>
  267. <!--配置描述文件路径-->
  268. <descriptor>src/main/assembly/assembly.xml</descriptor>
  269. </configuration>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-jar-plugin</artifactId>
  276. <version>2.4</version>
  277. <configuration>
  278. <archive>
  279. <manifest>
  280. <!--运行jar包时运行的主类,要求类全名-->
  281. <mainClass>com.dragonsoft.dcuc.approve.ApproveApplication</mainClass>
  282. <addClasspath>true</addClasspath>
  283. <!--取消MANIFEST.MF中classpath下的时间戳-->
  284. <useUniqueVersions>false</useUniqueVersions>
  285. </manifest>
  286. </archive>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-compiler-plugin</artifactId>
  292. <version>3.6.0</version>
  293. <configuration>
  294. <source>8</source>
  295. <target>8</target>
  296. </configuration>
  297. </plugin>
  298. <!--生成git-infos.properties 版本文件-->
  299. <plugin>
  300. <groupId>pl.project13.maven</groupId>
  301. <artifactId>git-commit-id-plugin</artifactId>
  302. <version>4.9.10</version>
  303. <executions>
  304. <execution>
  305. <id>get-the-git-infos</id>
  306. <goals>
  307. <goal>revision</goal>
  308. </goals>
  309. </execution>
  310. </executions>
  311. <configuration>
  312. <abbrevLength>8</abbrevLength>
  313. <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
  314. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  315. <includeOnlyProperties>
  316. <includeOnlyProperty>^git.branch</includeOnlyProperty>
  317. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  318. <includeOnlyProperty>^git.commit.(id|id.abbrev|message.full)*</includeOnlyProperty>
  319. </includeOnlyProperties>
  320. <generateGitPropertiesFilename>${project.build.outputDirectory}/git-infos.properties
  321. </generateGitPropertiesFilename>
  322. </configuration>
  323. </plugin>
  324. </plugins>
  325. </build>
  326. </profile>
  327. </profiles>
  328. </project>