pom.xml 11 KB

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