pom.xml 11 KB

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