pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <!-- <version>2.1.1.RELEASE</version>-->
  8. <version>2.2.6.RELEASE</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>cn.superdesk.uniorder</groupId>
  12. <artifactId>superdesk-operation-center</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <packaging>pom</packaging>
  15. <modules>
  16. <module>superdesk-uniorder-common</module>
  17. <module>superdesk-uniorder-common-mq-kafka</module>
  18. <module>superdesk-uniorder-common-mq-redis</module>
  19. <module>superdesk-uniorder-common-json</module>
  20. <module>superdesk-uniorder-common-queue</module>
  21. <module>superdesk-uniorder-dto</module>
  22. <module>superdesk-uniorder-dao</module>
  23. <module>superdesk-uniorder-service</module>
  24. <module>superdesk-uniorder-dubbo-facade</module>
  25. <module>superdesk-uniorder-dubbo-provider</module>
  26. <module>superdesk-uniorder-dubbo-consumer</module>
  27. <module>superdesk-uniorder-web</module>
  28. <module>superdesk-uniorder-openapi</module>
  29. <module>superdesk-uniorder-openapicall</module>
  30. </modules>
  31. <properties>
  32. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  33. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  34. <compiler.jdk.version>1.8</compiler.jdk.version>
  35. <!-- 2.2.6.RELEASE 2.1.1.RELEASE -->
  36. <spring-boot.version>2.2.6.RELEASE</spring-boot.version>
  37. <!-- <dubbo-spring-boot>1.0.1</dubbo-spring-boot>-->
  38. <lombok.version>1.18.12</lombok.version>
  39. <hutool.version>5.4.3</hutool.version>
  40. <!-- 太新 升级有问题 start -->
  41. <!-- <dubbo.version>2.6.2</dubbo.version>-->
  42. <!-- <spring-boot.version>2.0.5.RELEASE</spring-boot.version>-->
  43. <!-- <spring-boot.version>2.2.6.RELEASE</spring-boot.version>-->
  44. <!-- <dubbo.version>2.7.6</dubbo.version>-->
  45. <!-- 太新 升级有问题 end -->
  46. <!-- 2.3.3.RELEASE new
  47. 2.0.9.RELEASE springboot 2.1.1.RELEASE
  48. 2.0.16.Final springboot 2.2.5.RELEASE
  49. -->
  50. <!-- <undertow.version>2.1.1.RELEASE</undertow.version>-->
  51. <!-- <undertow-final.version>2.1.1.Final</undertow-core.version>-->
  52. <!-- <tomcat.version>9.0.13</tomcat.version>-->
  53. <dubbo.version>2.6.5</dubbo.version>
  54. <!-- spring版本号 -->
  55. <!-- <spring.version>5.0.7.RELEASE</spring.version>-->
  56. <!-- <spring-data-redis.version>2.0.8.RELEASE</spring-data-redis.version>-->
  57. <!-- 数据库 -->
  58. <!--<mysql.version>8.0.19</mysql.version>-->
  59. <sharding-jdbc.version>1.4.1</sharding-jdbc.version>
  60. <!-- mybatis版本号 -->
  61. <mybatis.version>3.4.6</mybatis.version>
  62. <mybatis-spring.version>1.3.1</mybatis-spring.version>
  63. <mybatis-plus.version>2.3</mybatis-plus.version>
  64. <pagehelper.version>5.1.10</pagehelper.version>
  65. <!-- log4j日志文件管理包版本 -->
  66. <slf4j.version>1.7.25</slf4j.version>
  67. <!--<log4j.version>2.11.0</log4j.version>-->
  68. <!-- 1.1.10 -->
  69. <druid.version>1.1.21</druid.version>
  70. <!-- 2.9.5 2.13.0 -->
  71. <jackson.version>2.13.0</jackson.version>
  72. <!-- 1.2.47 up 1.2.68-->
  73. <fastjson.version>1.2.68</fastjson.version>
  74. <motan.version>1.1.1</motan.version>
  75. <!-- -->
  76. <netty-version>4.1.25.Final</netty-version>
  77. <lettuce.version>5.0.4.RELEASE</lettuce.version>
  78. <okhttp.version>3.10.0</okhttp.version>
  79. <mail.version>1.6.1</mail.version>
  80. <redisson.version>3.7.1</redisson.version>
  81. <poi.version>3.17</poi.version>
  82. <jxl.version>2.6.12</jxl.version>
  83. <xfire.version>1.2.6</xfire.version>
  84. <jsch.version>0.1.54</jsch.version>
  85. <zxing.version>3.3.2</zxing.version>
  86. <ip2region.version>1.7.2</ip2region.version>
  87. <zookeeper.version>3.4.12</zookeeper.version>
  88. <shiro.version>1.4.0</shiro.version>
  89. <quartz.version>2.3.0</quartz.version>
  90. <aspectj.version>1.9.1</aspectj.version>
  91. <pinyin4j.version>2.5.1</pinyin4j.version>
  92. <activemq.version>5.13.3</activemq.version>
  93. <jsqlparser.version>0.9.5</jsqlparser.version>
  94. <!-- TODO swagger 3.0.0 2.9.2 2.8.0 -->
  95. <swagger.version>3.0.0</swagger.version>
  96. <springfox.version>2.6.1</springfox.version>
  97. <thumbnailator.version>0.4.8</thumbnailator.version>
  98. <javassist.version>3.22.0-GA</javassist.version>
  99. <superdesk.libs.version>1.3.1-SNAPSHOT</superdesk.libs.version>
  100. <docker.image.prefix>superdesk-uniorder</docker.image.prefix>
  101. </properties>
  102. <!-- <dependencyManagement>-->
  103. <!-- <dependencies>-->
  104. <!-- &lt;!&ndash; Spring Boot &ndash;&gt;-->
  105. <!-- &lt;!&ndash; <dependency>&ndash;&gt;-->
  106. <!-- &lt;!&ndash; <groupId>org.springframework.boot</groupId>&ndash;&gt;-->
  107. <!-- &lt;!&ndash; <artifactId>spring-boot-dependencies</artifactId>&ndash;&gt;-->
  108. <!-- &lt;!&ndash; <version>${spring-boot.version}</version>&ndash;&gt;-->
  109. <!-- &lt;!&ndash; <type>pom</type>&ndash;&gt;-->
  110. <!-- &lt;!&ndash; <scope>import</scope>&ndash;&gt;-->
  111. <!-- &lt;!&ndash; </dependency>&ndash;&gt;-->
  112. <!-- &lt;!&ndash; Dubbo dependencies &ndash;&gt;-->
  113. <!-- <dependency>-->
  114. <!-- <groupId>com.alibaba</groupId>-->
  115. <!-- <artifactId>dubbo-dependencies-bom</artifactId>-->
  116. <!-- <version>${dubbo.version}</version>-->
  117. <!-- <type>pom</type>-->
  118. <!-- <scope>import</scope>-->
  119. <!-- </dependency>-->
  120. <!-- </dependencies>-->
  121. <!-- </dependencyManagement>-->
  122. <dependencies>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-starter-aop</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.projectlombok</groupId>
  129. <artifactId>lombok</artifactId>
  130. <version>${lombok.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>io.springfox</groupId>
  134. <artifactId>springfox-swagger2</artifactId>
  135. <version>${swagger.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>io.springfox</groupId>
  139. <artifactId>springfox-swagger-ui</artifactId>
  140. <version>${swagger.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.slf4j</groupId>
  144. <artifactId>slf4j-api</artifactId>
  145. <version>${slf4j.version}</version>
  146. </dependency>
  147. <!-- <dependency>-->
  148. <!-- <groupId>org.springframework.boot</groupId>-->
  149. <!-- <artifactId>spring-boot-starter-web</artifactId>-->
  150. <!-- </dependency>-->
  151. <dependency>
  152. <groupId>com.github.pagehelper</groupId>
  153. <artifactId>pagehelper</artifactId>
  154. <version>${pagehelper.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>junit</groupId>
  158. <artifactId>junit</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.commons</groupId>
  163. <artifactId>commons-lang3</artifactId>
  164. <version>3.7</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>commons-codec</groupId>
  168. <artifactId>commons-codec</artifactId>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-io</groupId>
  172. <artifactId>commons-io</artifactId>
  173. <version>2.6</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>commons-logging</groupId>
  177. <artifactId>commons-logging</artifactId>
  178. <version>1.2</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>xml-apis</groupId>
  182. <artifactId>xml-apis</artifactId>
  183. <!-- <version>2.0.2</version>-->
  184. <version>1.4.01</version>
  185. </dependency>
  186. <!-- https://mvnrepository.com/artifact/apache-xerces/xml-apis -->
  187. <!-- <dependency>-->
  188. <!-- <groupId>apache-xerces</groupId>-->
  189. <!-- <artifactId>xml-apis</artifactId>-->
  190. <!-- <version>2.9.1</version>-->
  191. <!-- </dependency>-->
  192. <!-- JWT -->
  193. <dependency>
  194. <groupId>io.jsonwebtoken</groupId>
  195. <artifactId>jjwt</artifactId>
  196. <version>0.9.0</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>axis</groupId>
  200. <artifactId>axis</artifactId>
  201. <version>1.4</version>
  202. </dependency>
  203. <!-- alibaba工具包 -->
  204. <dependency>
  205. <groupId>com.alibaba</groupId>
  206. <artifactId>fastjson</artifactId>
  207. <version>${fastjson.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>net.sf.json-lib</groupId>
  211. <artifactId>json-lib</artifactId>
  212. <version>2.4</version>
  213. <classifier>jdk15</classifier>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.google.code.gson</groupId>
  217. <artifactId>gson</artifactId>
  218. </dependency>
  219. <!-- <dependency>-->
  220. <!-- <groupId>org.json</groupId>-->
  221. <!-- <artifactId>json</artifactId>-->
  222. <!-- </dependency>-->
  223. <dependency>
  224. <groupId>net.iharder</groupId>
  225. <artifactId>base64</artifactId>
  226. <version>2.3.8</version>
  227. </dependency>
  228. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  229. <dependency>
  230. <groupId>org.apache.httpcomponents</groupId>
  231. <artifactId>httpclient</artifactId>
  232. </dependency>
  233. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime -->
  234. <dependency>
  235. <groupId>org.apache.httpcomponents</groupId>
  236. <artifactId>httpmime</artifactId>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.mybatis.generator</groupId>
  240. <artifactId>mybatis-generator-core</artifactId>
  241. <!-- <version>1.3.6</version>-->
  242. <version>1.4.0</version>
  243. <scope>test</scope>
  244. </dependency>
  245. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
  246. <!-- <dependency>-->
  247. <!-- <groupId>cn.hutool</groupId>-->
  248. <!-- <artifactId>hutool-all</artifactId>-->
  249. <!-- <version>5.3.9</version>-->
  250. <!-- </dependency>-->
  251. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-core -->
  252. <dependency>
  253. <groupId>cn.hutool</groupId>
  254. <artifactId>hutool-core</artifactId>
  255. <version>${hutool.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>cn.hutool</groupId>
  259. <artifactId>hutool-json</artifactId>
  260. <version>${hutool.version}</version>
  261. </dependency>
  262. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-poi -->
  263. <dependency>
  264. <groupId>cn.hutool</groupId>
  265. <artifactId>hutool-poi</artifactId>
  266. <version>${hutool.version}</version>
  267. </dependency>
  268. <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  269. <dependency>
  270. <groupId>org.apache.poi</groupId>
  271. <artifactId>poi-ooxml</artifactId>
  272. <version>4.1.2</version>
  273. </dependency>
  274. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-extra -->
  275. <dependency>
  276. <groupId>cn.hutool</groupId>
  277. <artifactId>hutool-extra</artifactId>
  278. <version>${hutool.version}</version>
  279. </dependency>
  280. <!-- https://mvnrepository.com/artifact/com.github.houbb/iexcel -->
  281. <dependency>
  282. <groupId>com.github.houbb</groupId>
  283. <artifactId>iexcel</artifactId>
  284. <version>0.0.9</version>
  285. </dependency>
  286. <!-- https://mvnrepository.com/artifact/javax.mail/mail -->
  287. <dependency>
  288. <groupId>javax.mail</groupId>
  289. <artifactId>mail</artifactId>
  290. <version>1.4.7</version>
  291. </dependency>
  292. </dependencies>
  293. <profiles>
  294. <profile>
  295. <id>docker</id>
  296. <build>
  297. <plugins>
  298. <plugin>
  299. <groupId>com.spotify</groupId>
  300. <artifactId>docker-maven-plugin</artifactId>
  301. </plugin>
  302. </plugins>
  303. </build>
  304. </profile>
  305. </profiles>
  306. <build>
  307. <resources>
  308. <resource>
  309. <directory>src/main/resources</directory>
  310. <filtering>true</filtering>
  311. <includes>
  312. <include>application.properties</include>
  313. <include>application-*.properties</include>
  314. <include>wechat.properties</include>
  315. </includes>
  316. </resource>
  317. <resource>
  318. <directory>src/main/resources</directory>
  319. <filtering>false</filtering>
  320. <includes>
  321. <include>*.xml</include>
  322. <include>**/*.xml</include>
  323. <include>*.jks</include>
  324. <include>templates/**</include>
  325. <include>metadata.json</include>
  326. <include>static/**</include>
  327. </includes>
  328. </resource>
  329. </resources>
  330. <pluginManagement>
  331. <plugins>
  332. <plugin>
  333. <groupId>org.apache.maven.plugins</groupId>
  334. <artifactId>maven-resources-plugin</artifactId>
  335. <configuration>
  336. <encoding>utf-8</encoding>
  337. <useDefaultDelimiters>true</useDefaultDelimiters>
  338. <nonFilteredFileExtensions>
  339. <nonFilteredFileExtension>jks</nonFilteredFileExtension>
  340. </nonFilteredFileExtensions>
  341. </configuration>
  342. </plugin>
  343. <plugin>
  344. <groupId>com.spotify</groupId>
  345. <artifactId>docker-maven-plugin</artifactId>
  346. <version>1.1.1</version>
  347. <executions>
  348. <execution>
  349. <id>build-image</id>
  350. <phase>package</phase>
  351. <goals>
  352. <goal>build</goal>
  353. </goals>
  354. </execution>
  355. <execution>
  356. <id>tag-image</id>
  357. <phase>package</phase>
  358. <goals>
  359. <goal>tag</goal>
  360. </goals>
  361. <configuration>
  362. <image>${docker.image.prefix}/${project.artifactId}</image>
  363. <newName>${docker.image.prefix}/${project.artifactId}</newName>
  364. <forceTags>true</forceTags>
  365. </configuration>
  366. </execution>
  367. <execution>
  368. <id>push-image</id>
  369. <phase>install</phase>
  370. <goals>
  371. <goal>push</goal>
  372. </goals>
  373. <configuration>
  374. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  375. </configuration>
  376. </execution>
  377. </executions>
  378. <configuration>
  379. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  380. <imageTags>
  381. <imageTag>${project.version}</imageTag>
  382. <imageTag>latest</imageTag>
  383. </imageTags>
  384. <forceTags>true</forceTags>
  385. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  386. <resources>
  387. <resource>
  388. <targetPath>/</targetPath>
  389. <directory>${project.build.directory}</directory>
  390. <include>${project.build.finalName}.jar</include>
  391. <filtering>true</filtering>
  392. </resource>
  393. </resources>
  394. <pushImage>false</pushImage>
  395. <pushImageTag>false</pushImageTag>
  396. </configuration>
  397. </plugin>
  398. </plugins>
  399. </pluginManagement>
  400. <plugins>
  401. <plugin>
  402. <groupId>org.apache.maven.plugins</groupId>
  403. <artifactId>maven-compiler-plugin</artifactId>
  404. <configuration>
  405. <source>${compiler.jdk.version}</source>
  406. <target>${compiler.jdk.version}</target>
  407. <encoding>${project.build.sourceEncoding}</encoding>
  408. <!-- <compilerArguments>-->
  409. <!-- <bootclasspath>-->
  410. <!-- ${java.home}/lib/rt.jar;${java.home}/jre/lib/jce.jar;${java.home}/jre/lib/jsse.jar-->
  411. <!-- </bootclasspath>-->
  412. <!-- </compilerArguments>-->
  413. </configuration>
  414. </plugin>
  415. </plugins>
  416. </build>
  417. <distributionManagement>
  418. <repository>
  419. <id>nexus-releases</id>
  420. <!--<name>Project RELEASE</name>-->
  421. <url>https://nexus.superdesk.cn/repository/maven-releases</url>
  422. </repository>
  423. <snapshotRepository>
  424. <id>nexus-snapshots</id>
  425. <!--<name>Porject SNAPSHOTS</name>-->
  426. <url>https://nexus.superdesk.cn/repository/maven-snapshots</url>
  427. </snapshotRepository>
  428. </distributionManagement>
  429. </project>