pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>dcuc-duceap</artifactId>
  7. <groupId>com.dragoninfo</groupId>
  8. <version>2.2.0-tjdsj-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>dcuc-duceap-service</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.dragoninfo</groupId>
  15. <artifactId>dcuc-duceap-api</artifactId>
  16. <version>${project.version}</version>
  17. </dependency>
  18. <!--框架内部组件集成-->
  19. <!--cloud 项目 -->
  20. <dependency>
  21. <groupId>com.dragonsoft</groupId>
  22. <artifactId>duceap-cloud-starter</artifactId>
  23. </dependency>
  24. <!--配置中心-->
  25. <dependency>
  26. <groupId>com.dragonsoft</groupId>
  27. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  28. </dependency>
  29. <!--元数据组件-->
  30. <dependency>
  31. <groupId>com.dragonsoft</groupId>
  32. <artifactId>duceap-boot-starter-metadata</artifactId>
  33. </dependency>
  34. <!--code代码组件-->
  35. <dependency>
  36. <groupId>com.dragonsoft</groupId>
  37. <artifactId>duceap-boot-starter-code</artifactId>
  38. </dependency>
  39. <!--uploader上传组件-->
  40. <dependency>
  41. <groupId>com.dragonsoft</groupId>
  42. <artifactId>duceap-boot-starter-uploader</artifactId>
  43. </dependency>
  44. <!--redis缓存-->
  45. <!--框架底层表码使用了缓存,启动类上加上缓存注解-->
  46. <dependency>
  47. <groupId>com.dragonsoft</groupId>
  48. <artifactId>duceap-boot-starter-cache-redis</artifactId>
  49. </dependency>
  50. <!--redis start组件缺少这个包-->
  51. <dependency>
  52. <groupId>com.dragonsoft</groupId>
  53. <artifactId>duceap-extension-cache</artifactId>
  54. </dependency>
  55. <!--flyway模块-->
  56. <dependency>
  57. <groupId>com.dragonsoft</groupId>
  58. <artifactId>duceap-boot-starter-flyway</artifactId>
  59. </dependency>
  60. <!--框架组Es组件开始-->
  61. <dependency>
  62. <groupId>com.dragonsoft.dyy</groupId>
  63. <artifactId>nosql-api</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.dragonsoft.dyy</groupId>
  67. <artifactId>nosql-elasticsearch-api</artifactId>
  68. </dependency>
  69. <!--接入配置中心使用依赖-->
  70. <!-- <dependency>-->
  71. <!-- <groupId>com.dragonsoft.dyy</groupId>-->
  72. <!-- <artifactId>nosql-plugins-springconfig</artifactId>-->
  73. <!-- <version>1.0.0-SNAPSHOT</version>-->
  74. <!-- </dependency>-->
  75. <!--框架组Es组件结束-->
  76. <!--数据源驱动-->
  77. <dependency>
  78. <groupId>com.oracle</groupId>
  79. <artifactId>ojdbc6</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>mysql</groupId>
  83. <artifactId>mysql-connector-java</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.projectlombok</groupId>
  87. <artifactId>lombok</artifactId>
  88. <scope>provided</scope>
  89. </dependency>
  90. <!--配置 spring 开始-->
  91. <!--配置处理-->
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-configuration-processor</artifactId>
  95. <optional>true</optional>
  96. </dependency>
  97. <!--监控配置-->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-actuator</artifactId>
  101. </dependency>
  102. <!--kafka-->
  103. <dependency>
  104. <groupId>org.springframework.kafka</groupId>
  105. <artifactId>spring-kafka</artifactId>
  106. </dependency>
  107. <!--配置 spring 结束-->
  108. <!--许可-->
  109. <dependency>
  110. <groupId>com.dragonsoft</groupId>
  111. <artifactId>duceap-support-license</artifactId>
  112. </dependency>
  113. <!--许可依赖包 结束-->
  114. <!-- 国密加密工具 -->
  115. <dependency>
  116. <groupId>com.dragonsoft</groupId>
  117. <artifactId>sm-tools</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.dragoninfo</groupId>
  121. <artifactId>dcuc-common</artifactId>
  122. </dependency>
  123. <!-- 国密加密工具 -->
  124. <!-- 单元测试 -->
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-starter-test</artifactId>
  128. <scope>test</scope>
  129. </dependency>
  130. <!-- 单元测试 -->
  131. </dependencies>
  132. <packaging>${project.packaging}</packaging>
  133. <profiles>
  134. <!--war打包配置-->
  135. <!--使用方式 mvn clean package -Pwar-->
  136. <profile>
  137. <id>war</id>
  138. <properties>
  139. <project.packaging>war</project.packaging>
  140. </properties>
  141. <dependencies>
  142. <dependency>
  143. <groupId>com.dragonsoft</groupId>
  144. <artifactId>duceap-boot-starter-web</artifactId>
  145. <!-- 移除嵌入式tomcat插件 -->
  146. <exclusions>
  147. <exclusion>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-starter-tomcat</artifactId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. </dependencies>
  154. <build>
  155. <plugins>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-war-plugin</artifactId>
  159. <version>2.1.1</version>
  160. <configuration>
  161. <failOnMissingWebXml>false</failOnMissingWebXml>
  162. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  163. <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </profile>
  169. <profile>
  170. <id>jar</id>
  171. <activation>
  172. <activeByDefault>true</activeByDefault>
  173. </activation>
  174. <properties>
  175. <project.packaging>jar</project.packaging>
  176. </properties>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <artifactId>maven-dependency-plugin</artifactId>
  181. <version>2.6</version>
  182. <executions>
  183. <execution>
  184. <id>copy-libs</id>
  185. <phase>package</phase>
  186. <goals>
  187. <goal>copy-dependencies</goal>
  188. </goals>
  189. <configuration>
  190. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  191. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  192. <excludeScope>provided</excludeScope>
  193. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  194. <!--取消依赖包的时间戳-->
  195. <useBaseVersion>true</useBaseVersion>
  196. </configuration>
  197. </execution>
  198. <execution>
  199. <id>unpack</id>
  200. <phase>package</phase>
  201. <goals>
  202. <goal>unpack</goal>
  203. </goals>
  204. <configuration>
  205. <artifactItems>
  206. <artifactItem>
  207. <groupId>com.dragonsoft</groupId>
  208. <artifactId>duceap-base</artifactId>
  209. <!--根据框架版本修改-->
  210. <version>2.1.0-SNAPSHOT</version>
  211. <!--<version>2.1.0-SNAPSHOT</version>-->
  212. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  213. <!--加入平台的启动脚本-->
  214. <includes>META-INF/scripts/**</includes>
  215. </artifactItem>
  216. </artifactItems>
  217. </configuration>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. <plugin>
  222. <artifactId>maven-assembly-plugin</artifactId>
  223. <version>2.5.5</version>
  224. <executions>
  225. <execution>
  226. <id>make-assembly</id>
  227. <phase>package</phase>
  228. <goals>
  229. <goal>single</goal>
  230. </goals>
  231. <configuration>
  232. <finalName>${project.name}-${project.version}</finalName>
  233. <appendAssemblyId>false</appendAssemblyId>
  234. <!--配置描述文件路径-->
  235. <descriptor>src/main/assembly/assembly.xml</descriptor>
  236. </configuration>
  237. </execution>
  238. </executions>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-jar-plugin</artifactId>
  243. <version>2.4</version>
  244. <configuration>
  245. <archive>
  246. <manifest>
  247. <!--运行jar包时运行的主类,要求类全名-->
  248. <mainClass>com.dragoninfo.dcuc.duceap.DcucDceapApplication</mainClass>
  249. <addClasspath>true</addClasspath>
  250. <!--取消MANIFEST.MF中classpath下的时间戳-->
  251. <useUniqueVersions>false</useUniqueVersions>
  252. </manifest>
  253. </archive>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-compiler-plugin</artifactId>
  259. <version>3.6.0</version>
  260. <configuration>
  261. <source>8</source>
  262. <target>8</target>
  263. </configuration>
  264. </plugin>
  265. <!--生成git-infos.properties 版本文件-->
  266. <plugin>
  267. <groupId>pl.project13.maven</groupId>
  268. <artifactId>git-commit-id-plugin</artifactId>
  269. <version>4.9.10</version>
  270. <executions>
  271. <execution>
  272. <id>get-the-git-infos</id>
  273. <goals>
  274. <goal>revision</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. <configuration>
  279. <abbrevLength>8</abbrevLength>
  280. <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
  281. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  282. <includeOnlyProperties>
  283. <includeOnlyProperty>^git.branch</includeOnlyProperty>
  284. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  285. <includeOnlyProperty>^git.commit.(id|id.abbrev|message.full)*</includeOnlyProperty>
  286. </includeOnlyProperties>
  287. <generateGitPropertiesFilename>${project.build.outputDirectory}/git-infos.properties
  288. </generateGitPropertiesFilename>
  289. </configuration>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </profile>
  294. </profiles>
  295. </project>