pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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.1.2-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. <!--MyBatis-Plus-->
  57. <dependency>
  58. <groupId>com.dragonsoft</groupId>
  59. <artifactId>duceap-boot-starter-mybatis</artifactId>
  60. </dependency>
  61. <!--配置 duceap 结束-->
  62. <!--许可-->
  63. <dependency>
  64. <groupId>com.dragonsoft</groupId>
  65. <artifactId>duceap-support-license</artifactId>
  66. </dependency>
  67. <!--许可依赖包 结束-->
  68. <!--配置 dcuc 开始-->
  69. <dependency>
  70. <groupId>com.dragoninfo</groupId>
  71. <artifactId>dcuc-common</artifactId>
  72. <version>2.0.0-SNAPSHOT</version>
  73. <exclusions>
  74. <exclusion>
  75. <artifactId>hibernate-core</artifactId>
  76. <groupId>org.hibernate</groupId>
  77. </exclusion>
  78. <exclusion>
  79. <artifactId>hibernate-entitymanager</artifactId>
  80. <groupId>org.hibernate</groupId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.dragoninfo</groupId>
  86. <artifactId>dcuc-app-api</artifactId>
  87. <version>${project.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.dragoninfo</groupId>
  91. <artifactId>dcuc-duceap-api</artifactId>
  92. <version>2.0.0-SNAPSHOT</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.dragoninfo</groupId>
  96. <artifactId>dcuc-org-api</artifactId>
  97. <version>2.0.0-tjdsj-SNAPSHOT</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.dragoninfo</groupId>
  101. <artifactId>dcuc-user-api</artifactId>
  102. <version>2.0.1-tjdsj-SNAPSHOT</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.dragoninfo</groupId>
  106. <artifactId>dcuc-auth-api</artifactId>
  107. <version>2.1.0-tjdsj-SNAPSHOT</version>
  108. </dependency>
  109. <!--配置 dcuc 结束-->
  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>provided</scope>
  125. </dependency>
  126. <!--配置第三方组件结束-->
  127. <!--配置 spring 开始-->
  128. <!--配置处理-->
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-configuration-processor</artifactId>
  132. <optional>true</optional>
  133. </dependency>
  134. <!--监控配置-->
  135. <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-starter-actuator</artifactId>
  138. </dependency>
  139. <!--kafka审计需要用到-->
  140. <dependency>
  141. <groupId>org.springframework.kafka</groupId>
  142. <artifactId>spring-kafka</artifactId>
  143. </dependency>
  144. <!--测试-->
  145. <dependency>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-starter-test</artifactId>
  148. <scope>test</scope>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.dragonsoft</groupId>
  152. <artifactId>dcms-mq-client-model</artifactId>
  153. <version>1.0-SNAPSHOT</version>
  154. <scope>compile</scope>
  155. </dependency>
  156. <!--配置 spring 结束-->
  157. </dependencies>
  158. <packaging>${project.packaging}</packaging>
  159. <profiles>
  160. <!--war打包配置-->
  161. <!--使用方式 mvn clean package -Pwar-->
  162. <profile>
  163. <id>war</id>
  164. <properties>
  165. <project.packaging>war</project.packaging>
  166. </properties>
  167. <dependencies>
  168. <dependency>
  169. <groupId>com.dragonsoft</groupId>
  170. <artifactId>duceap-boot-starter-web</artifactId>
  171. <!-- 移除嵌入式tomcat插件 -->
  172. <exclusions>
  173. <exclusion>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-starter-tomcat</artifactId>
  176. </exclusion>
  177. </exclusions>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-war-plugin</artifactId>
  185. <version>2.1.1</version>
  186. <configuration>
  187. <failOnMissingWebXml>false</failOnMissingWebXml>
  188. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  189. <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </profile>
  195. <profile>
  196. <id>jar</id>
  197. <activation>
  198. <activeByDefault>true</activeByDefault>
  199. </activation>
  200. <properties>
  201. <project.packaging>jar</project.packaging>
  202. </properties>
  203. <build>
  204. <plugins>
  205. <plugin>
  206. <artifactId>maven-dependency-plugin</artifactId>
  207. <version>2.6</version>
  208. <executions>
  209. <execution>
  210. <id>copy-libs</id>
  211. <phase>package</phase>
  212. <goals>
  213. <goal>copy-dependencies</goal>
  214. </goals>
  215. <configuration>
  216. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  217. <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>
  218. <excludeScope>provided</excludeScope>
  219. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  220. <!--取消依赖包的时间戳-->
  221. <useBaseVersion>true</useBaseVersion>
  222. </configuration>
  223. </execution>
  224. <execution>
  225. <id>unpack</id>
  226. <phase>package</phase>
  227. <goals>
  228. <goal>unpack</goal>
  229. </goals>
  230. <configuration>
  231. <artifactItems>
  232. <artifactItem>
  233. <groupId>com.dragonsoft</groupId>
  234. <artifactId>duceap-base</artifactId>
  235. <!--根据框架版本修改-->
  236. <version>2.1.0-SNAPSHOT</version>
  237. <!--<version>2.1.0-SNAPSHOT</version>-->
  238. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  239. <!--加入平台的启动脚本-->
  240. <includes>META-INF/scripts/**</includes>
  241. </artifactItem>
  242. </artifactItems>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <artifactId>maven-assembly-plugin</artifactId>
  249. <version>2.5.5</version>
  250. <executions>
  251. <execution>
  252. <id>make-assembly</id>
  253. <phase>package</phase>
  254. <goals>
  255. <goal>single</goal>
  256. </goals>
  257. <configuration>
  258. <finalName>${project.name}-${project.version}</finalName>
  259. <appendAssemblyId>false</appendAssemblyId>
  260. <!--配置描述文件路径-->
  261. <descriptor>src/main/assembly/assembly.xml</descriptor>
  262. </configuration>
  263. </execution>
  264. </executions>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.maven.plugins</groupId>
  268. <artifactId>maven-jar-plugin</artifactId>
  269. <version>2.4</version>
  270. <configuration>
  271. <archive>
  272. <manifest>
  273. <!--运行jar包时运行的主类,要求类全名-->
  274. <mainClass>com.dragoninfo.dcuc.app.DcucAppApplication</mainClass>
  275. <addClasspath>true</addClasspath>
  276. <!--取消MANIFEST.MF中classpath下的时间戳-->
  277. <useUniqueVersions>false</useUniqueVersions>
  278. </manifest>
  279. </archive>
  280. </configuration>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-compiler-plugin</artifactId>
  285. <version>3.6.0</version>
  286. <configuration>
  287. <source>8</source>
  288. <target>8</target>
  289. </configuration>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </profile>
  294. </profiles>
  295. </project>