pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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.2.1-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. <version>2.1.2-SNAPSHOT</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.dragonsoft</groupId>
  49. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.dragonsoft</groupId>
  53. <artifactId>duceap-boot-starter-swagger</artifactId>
  54. </dependency>
  55. <!--MyBatis-Plus-->
  56. <dependency>
  57. <groupId>com.dragonsoft</groupId>
  58. <artifactId>duceap-boot-starter-mybatis</artifactId>
  59. </dependency>
  60. <!--配置 duceap 结束-->
  61. <!--配置第三方组件开始-->
  62. <!--oracle 引入-->
  63. <!--<dependency>-->
  64. <!--<groupId>com.oracle</groupId>-->
  65. <!--<artifactId>ojdbc6</artifactId>-->
  66. <!--</dependency>-->
  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. <!--对接审计-->
  86. <dependency>
  87. <groupId>com.dragonsoft</groupId>
  88. <artifactId>auditlog-qm-tj</artifactId>
  89. <version>1.0.0-SNAPSHOT</version>
  90. <exclusions>
  91. <exclusion>
  92. <artifactId>joda-time</artifactId>
  93. <groupId>joda-time</groupId>
  94. </exclusion>
  95. </exclusions>
  96. </dependency>
  97. <!--对接审计-->
  98. <!--测试-->
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-test</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>junit</groupId>
  106. <artifactId>junit</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <!--配置 spring 结束-->
  110. <!--redis-->
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-data-redis</artifactId>
  114. <version>2.1.8.RELEASE</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>redis.clients</groupId>
  118. <artifactId>jedis</artifactId>
  119. <version>2.9.3</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.auth0</groupId>
  123. <artifactId>java-jwt</artifactId>
  124. <version>3.10.3</version>
  125. </dependency>
  126. <!--redis结束-->
  127. <dependency>
  128. <groupId>com.dragoninfo.dcuc</groupId>
  129. <artifactId>approve-api</artifactId>
  130. <version>${project.version}</version>
  131. <scope>compile</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.dragoninfo</groupId>
  135. <artifactId>dcuc-app-api</artifactId>
  136. <version>2.0.0-SNAPSHOT</version>
  137. </dependency>
  138. <!--工作流-->
  139. <!--nosql api依赖开始-->
  140. <!--<dependency>
  141. <groupId>com.dragonsoft.dyy</groupId>
  142. <artifactId>nosql-plugins-springconfig</artifactId>
  143. <version>1.0.0-SNAPSHOT</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.dragonsoft.dyy</groupId>
  147. <artifactId>nosql-kafka-api</artifactId>
  148. <version>1.0.1-SNAPSHOT</version>
  149. <exclusions>
  150. <exclusion>
  151. <artifactId>nosql-api</artifactId>
  152. <groupId>com.dragonsoft.dyy</groupId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>-->
  156. <dependency>
  157. <groupId>com.dragonsoft</groupId>
  158. <artifactId>dcms-mq-client-model</artifactId>
  159. <version>1.0-SNAPSHOT</version>
  160. </dependency>
  161. <!--nosql api依赖结束-->
  162. <!--kafka-->
  163. <dependency>
  164. <groupId>com.dragoninfo</groupId>
  165. <artifactId>dcuc-duceap-model</artifactId>
  166. <version>2.1.2-SNAPSHOT</version>
  167. <scope>compile</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.github.rholder</groupId>
  171. <artifactId>guava-retrying</artifactId>
  172. </dependency>
  173. </dependencies>
  174. <profiles>
  175. <profile>
  176. <id>jar</id>
  177. <activation>
  178. <activeByDefault>true</activeByDefault>
  179. </activation>
  180. <properties>
  181. <project.packaging>jar</project.packaging>
  182. </properties>
  183. <build>
  184. <plugins>
  185. <plugin>
  186. <artifactId>maven-dependency-plugin</artifactId>
  187. <version>2.6</version>
  188. <executions>
  189. <execution>
  190. <id>copy-libs</id>
  191. <phase>package</phase>
  192. <goals>
  193. <goal>copy-dependencies</goal>
  194. </goals>
  195. <configuration>
  196. <!--<excludeScope>provided</excludeScope>-->
  197. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  198. <!--取消依赖包的时间戳-->
  199. <useBaseVersion>true</useBaseVersion>
  200. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  201. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  202. </configuration>
  203. </execution>
  204. <execution>
  205. <id>unpack</id>
  206. <phase>package</phase>
  207. <goals>
  208. <goal>unpack</goal>
  209. </goals>
  210. <configuration>
  211. <artifactItems>
  212. <artifactItem>
  213. <groupId>com.dragonsoft</groupId>
  214. <artifactId>duceap-base</artifactId>
  215. <!--根据框架版本修改-->
  216. <version>${duceap.version}</version>
  217. <!--<version>2.1.0-SNAPSHOT</version>-->
  218. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  219. <!--加入平台的启动脚本-->
  220. <includes>META-INF/scripts/**</includes>
  221. </artifactItem>
  222. </artifactItems>
  223. </configuration>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <artifactId>maven-assembly-plugin</artifactId>
  229. <version>2.5.5</version>
  230. <executions>
  231. <execution>
  232. <id>make-assembly</id>
  233. <phase>package</phase>
  234. <goals>
  235. <goal>single</goal>
  236. </goals>
  237. <configuration>
  238. <finalName>${project.name}-${project.version}</finalName>
  239. <appendAssemblyId>false</appendAssemblyId>
  240. <!--配置描述文件路径-->
  241. <descriptor>src/main/assembly/assembly.xml</descriptor>
  242. </configuration>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-jar-plugin</artifactId>
  249. <version>2.4</version>
  250. <configuration>
  251. <archive>
  252. <manifest>
  253. <!--运行jar包时运行的主类,要求类全名-->
  254. <mainClass>com.dragonsoft.dcuc.approve.ApproveApplication</mainClass>
  255. <addClasspath>true</addClasspath>
  256. <!--取消MANIFEST.MF中classpath下的时间戳-->
  257. <useUniqueVersions>false</useUniqueVersions>
  258. </manifest>
  259. </archive>
  260. </configuration>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.apache.maven.plugins</groupId>
  264. <artifactId>maven-compiler-plugin</artifactId>
  265. <version>3.6.0</version>
  266. <configuration>
  267. <source>8</source>
  268. <target>8</target>
  269. </configuration>
  270. </plugin>
  271. </plugins>
  272. </build>
  273. </profile>
  274. </profiles>
  275. </project>