pom.xml 12 KB

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