pom.xml 13 KB

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