pom.xml 11 KB

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