pom.xml 14 KB

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