pom.xml 12 KB

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