pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. <version>1.0.1-SNAPSHOT</version>
  142. <exclusions>
  143. <exclusion>
  144. <artifactId>joda-time</artifactId>
  145. <groupId>joda-time</groupId>
  146. </exclusion>
  147. </exclusions>
  148. </dependency>
  149. <!-- 分布式锁 -->
  150. <dependency>
  151. <groupId>org.redisson</groupId>
  152. <artifactId>redisson</artifactId>
  153. <version>3.5.4</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.github.dreamhead</groupId>
  157. <artifactId>moco-core</artifactId>
  158. <scope>test</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.github.dreamhead</groupId>
  162. <artifactId>moco-junit</artifactId>
  163. <scope>test</scope>
  164. </dependency>
  165. <dependency>
  166. <groupId>it.ozimov</groupId>
  167. <artifactId>embedded-redis</artifactId>
  168. <scope>test</scope>
  169. <exclusions>
  170. <exclusion>
  171. <artifactId>slf4j-simple</artifactId>
  172. <groupId>org.slf4j</groupId>
  173. </exclusion>
  174. </exclusions>
  175. </dependency>
  176. <!--配置第三方组件结束-->
  177. </dependencies>
  178. <packaging>${project.packaging}</packaging>
  179. <profiles>
  180. <profile>
  181. <id>jar</id>
  182. <activation>
  183. <activeByDefault>true</activeByDefault>
  184. </activation>
  185. <properties>
  186. <project.packaging>jar</project.packaging>
  187. </properties>
  188. <build>
  189. <plugins>
  190. <plugin>
  191. <artifactId>maven-dependency-plugin</artifactId>
  192. <version>2.6</version>
  193. <executions>
  194. <execution>
  195. <id>copy-libs</id>
  196. <phase>package</phase>
  197. <goals>
  198. <goal>copy-dependencies</goal>
  199. </goals>
  200. <configuration>
  201. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  202. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  203. <excludeScope>provided</excludeScope>
  204. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  205. <!--取消依赖包的时间戳-->
  206. <useBaseVersion>true</useBaseVersion>
  207. </configuration>
  208. </execution>
  209. <execution>
  210. <id>unpack</id>
  211. <phase>package</phase>
  212. <goals>
  213. <goal>unpack</goal>
  214. </goals>
  215. <configuration>
  216. <artifactItems>
  217. <artifactItem>
  218. <groupId>com.dragonsoft</groupId>
  219. <artifactId>duceap-base</artifactId>
  220. <!--根据框架版本修改-->
  221. <version>2.1.0-SNAPSHOT</version>
  222. <!--<version>2.1.0-SNAPSHOT</version>-->
  223. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  224. <!--加入平台的启动脚本-->
  225. <includes>META-INF/scripts/**</includes>
  226. </artifactItem>
  227. </artifactItems>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <artifactId>maven-assembly-plugin</artifactId>
  234. <version>2.5.5</version>
  235. <executions>
  236. <execution>
  237. <id>make-assembly</id>
  238. <phase>package</phase>
  239. <goals>
  240. <goal>single</goal>
  241. </goals>
  242. <configuration>
  243. <finalName>${project.name}-${project.version}</finalName>
  244. <appendAssemblyId>false</appendAssemblyId>
  245. <!--配置描述文件路径-->
  246. <descriptor>src/main/assembly/assembly.xml</descriptor>
  247. </configuration>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-jar-plugin</artifactId>
  254. <version>2.4</version>
  255. <configuration>
  256. <archive>
  257. <manifest>
  258. <!--运行jar包时运行的主类,要求类全名-->
  259. <mainClass>com.dragoninfo.dcuc.auth.DcucAuthApplication</mainClass>
  260. <addClasspath>true</addClasspath>
  261. <!--取消MANIFEST.MF中classpath下的时间戳-->
  262. <useUniqueVersions>false</useUniqueVersions>
  263. </manifest>
  264. </archive>
  265. </configuration>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-compiler-plugin</artifactId>
  270. <version>3.6.0</version>
  271. <configuration>
  272. <source>8</source>
  273. <target>8</target>
  274. </configuration>
  275. </plugin>
  276. </plugins>
  277. </build>
  278. </profile>
  279. </profiles>
  280. </project>