pom.xml 13 KB

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