pom.xml 19 KB

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