pom.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.7.5</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.xjrsoft</groupId>
  12. <artifactId>xjrsoft-boot</artifactId>
  13. <version>1.0.0-SNAPSHOT</version>
  14. <name>xjrsoft-boot</name>
  15. <description>xjrsoft-boot</description>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>11</java.version>
  20. <commons.lang.version>2.6</commons.lang.version>
  21. <commons.fileupload.version>1.5</commons.fileupload.version>
  22. <commons.io.version>2.5</commons.io.version>
  23. <commons.codec.version>1.10</commons.codec.version>
  24. <commons.configuration.version>1.10</commons.configuration.version>
  25. <hutool.version>5.7.20</hutool.version>
  26. <satoken.version>1.35.0.RC</satoken.version>
  27. <lombok.version>1.18.4</lombok.version>
  28. <fastjson.version>1.2.83</fastjson.version>
  29. <joda.time.version>2.9.9</joda.time.version>
  30. <gson.version>2.8.5</gson.version>
  31. <mybatisplus.join.version>1.4.2.2</mybatisplus.join.version>
  32. <mybatisplus.version>3.5.1</mybatisplus.version>
  33. <mybatisplus.generator.version>3.5.2</mybatisplus.generator.version>
  34. <mybatisplus.dynamic.version>3.5.2</mybatisplus.dynamic.version>
  35. <druid.version>1.1.22</druid.version>
  36. <knife4j.version>2.0.7</knife4j.version>
  37. <freemarker.version>2.3.30</freemarker.version>
  38. <hibernatevalidator.version>6.0.13.Final</hibernatevalidator.version>
  39. <qiniu.version>7.2.23</qiniu.version>
  40. <aliyun.oss.version>2.8.3</aliyun.oss.version>
  41. <qcloud.cos.version>4.4</qcloud.cos.version>
  42. <huawei.obs.version>3.19.7</huawei.obs.version>
  43. <minio.oss.version>7.1.0</minio.oss.version>
  44. <jaxb.api.version>2.3.0</jaxb.api.version>
  45. <log4j.core.version>2.17.2</log4j.core.version>
  46. <screw.version>1.0.5</screw.version>
  47. <ureport.version>2.2.9</ureport.version>
  48. <camunda.version>7.18.0</camunda.version>
  49. <groovy.version>3.0.17</groovy.version>
  50. <javax.mail.version>1.6.2</javax.mail.version>
  51. <magic.api.version>2.1.1</magic.api.version>
  52. <keycloak.version>20.0.1</keycloak.version>
  53. <aliyun.core.version>4.5.1</aliyun.core.version>
  54. <tencentcloud.version>3.1.62</tencentcloud.version>
  55. <chatgpt.java.version>1.0.6</chatgpt.java.version>
  56. <okio.version>3.3.0</okio.version>
  57. <easyexcel.version>3.1.4</easyexcel.version>
  58. <poi.version>3.17</poi.version>
  59. <ooxml.schemas.version>1.3</ooxml.schemas.version>
  60. <javassist.version>3.29.2-GA</javassist.version>
  61. <microsoft.version>8.4.1.jre8</microsoft.version>
  62. <pinyin4j.version>2.5.1</pinyin4j.version>
  63. <sms4j.version>2.1.0</sms4j.version>
  64. <license.version>2.0</license.version>
  65. <justauth.version>1.16.5</justauth.version>
  66. <dingtalk.version>2.0.26</dingtalk.version>
  67. <version.tomcat>9.0.71</version.tomcat>
  68. <easy.captcha.version>1.6.2</easy.captcha.version>
  69. <paho.mqttv5.version>1.2.5</paho.mqttv5.version>
  70. <liteflow.version>2.11.2</liteflow.version>
  71. <zxing.version>3.2.1</zxing.version>
  72. <hikvision.version>1.1.3</hikvision.version>
  73. <apm.toolkit.version>9.3.0</apm.toolkit.version>
  74. </properties>
  75. <dependencies>
  76. <!-- 引入解决人脸照片方向问题 -->
  77. <dependency>
  78. <groupId>com.drewnoakes</groupId>
  79. <artifactId>metadata-extractor</artifactId>
  80. <version>2.16.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-test</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-data-redis</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.eclipse.paho</groupId>
  97. <artifactId>org.eclipse.paho.mqttv5.client</artifactId>
  98. <version>${paho.mqttv5.version}</version>
  99. </dependency>
  100. <!-- 海康威视 -->
  101. <dependency>
  102. <groupId>com.hikvision.ga</groupId>
  103. <artifactId>artemis-http-client</artifactId>
  104. <version>${hikvision.version}</version>
  105. </dependency>
  106. <!--规则引擎-->
  107. <dependency>
  108. <groupId>com.yomahub</groupId>
  109. <artifactId>liteflow-spring-boot-starter</artifactId>
  110. <version>${liteflow.version}</version>
  111. <exclusions>
  112. <exclusion>
  113. <groupId>cn.hutool</groupId>
  114. <artifactId>hutool-core</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <!--Java图形验证码,支持gif、中文、算术等类型:https://gitee.com/ele-admin/EasyCaptcha-->
  119. <dependency>
  120. <groupId>com.github.whvcse</groupId>
  121. <artifactId>easy-captcha</artifactId>
  122. <version>${easy.captcha.version}</version>
  123. </dependency>
  124. <!--引入MySql依赖-->
  125. <dependency>
  126. <groupId>mysql</groupId>
  127. <artifactId>mysql-connector-java</artifactId>
  128. </dependency>
  129. <!--引入oracle依赖-->
  130. <dependency>
  131. <groupId>com.oracle</groupId>
  132. <artifactId>ojdbc7</artifactId>
  133. <version>12.1.0.1.0</version>
  134. <scope>system</scope>
  135. <systemPath>${project.basedir}/src/main/resources/lib/ojdbc7.jar</systemPath>
  136. </dependency>
  137. <!--引入sqlserver依赖-->
  138. <dependency>
  139. <groupId>com.microsoft.sqlserver</groupId>
  140. <artifactId>mssql-jdbc</artifactId>
  141. <version>${microsoft.version}</version>
  142. </dependency>
  143. <!--引入hutool依赖-->
  144. <dependency>
  145. <groupId>cn.hutool</groupId>
  146. <artifactId>hutool-all</artifactId>
  147. <version>${hutool.version}</version>
  148. </dependency>
  149. <!--引入hutool依赖 邮件依赖-->
  150. <dependency>
  151. <groupId>com.sun.mail</groupId>
  152. <artifactId>javax.mail</artifactId>
  153. <version>${javax.mail.version}</version>
  154. </dependency>
  155. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  156. <dependency>
  157. <groupId>cn.dev33</groupId>
  158. <artifactId>sa-token-spring-boot-starter</artifactId>
  159. <version>${satoken.version}</version>
  160. </dependency>
  161. <!-- Sa-Token 整合 Redis (使用jdk默认序列化方式) -->
  162. <!-- <dependency>-->
  163. <!-- <groupId>cn.dev33</groupId>-->
  164. <!-- <artifactId>sa-token-dao-redis</artifactId>-->
  165. <!-- <version>${satoken.version}</version>-->
  166. <!-- </dependency>-->
  167. <dependency>
  168. <groupId>cn.dev33</groupId>
  169. <artifactId>sa-token-redis</artifactId>
  170. <version>${satoken.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>cn.dev33</groupId>
  174. <artifactId>sa-token-temp-jwt</artifactId>
  175. <version>${satoken.version}</version>
  176. </dependency>
  177. <!-- Sa-Token-OAuth2.0 模块 -->
  178. <dependency>
  179. <groupId>cn.dev33</groupId>
  180. <artifactId>sa-token-oauth2</artifactId>
  181. <version>${satoken.version}</version>
  182. </dependency>
  183. <!--引入Lombok依赖-->
  184. <dependency>
  185. <groupId>org.projectlombok</groupId>
  186. <artifactId>lombok</artifactId>
  187. <version>${lombok.version}</version>
  188. <optional>true</optional>
  189. </dependency>
  190. <!--引入mybatis-plus依赖-->
  191. <dependency>
  192. <groupId>com.baomidou</groupId>
  193. <artifactId>mybatis-plus-boot-starter</artifactId>
  194. <version>${mybatisplus.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.baomidou</groupId>
  198. <artifactId>mybatis-plus-generator</artifactId>
  199. <version>${mybatisplus.generator.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.github.xiaoymin</groupId>
  203. <artifactId>knife4j-spring-boot-starter</artifactId>
  204. <version>${knife4j.version}</version>
  205. </dependency>
  206. <!--引入fastjson依赖-->
  207. <dependency>
  208. <groupId>com.alibaba</groupId>
  209. <artifactId>fastjson</artifactId>
  210. <version>${fastjson.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>commons-lang</groupId>
  214. <artifactId>commons-lang</artifactId>
  215. <version>${commons.lang.version}</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>commons-fileupload</groupId>
  219. <artifactId>commons-fileupload</artifactId>
  220. <version>${commons.fileupload.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>commons-io</groupId>
  224. <artifactId>commons-io</artifactId>
  225. <version>${commons.io.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>commons-codec</groupId>
  229. <artifactId>commons-codec</artifactId>
  230. <version>${commons.codec.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>commons-configuration</groupId>
  234. <artifactId>commons-configuration</artifactId>
  235. <version>${commons.configuration.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>joda-time</groupId>
  239. <artifactId>joda-time</artifactId>
  240. <version>${joda.time.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.google.code.gson</groupId>
  244. <artifactId>gson</artifactId>
  245. <version>${gson.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>com.alibaba</groupId>
  249. <artifactId>druid-spring-boot-starter</artifactId>
  250. <version>${druid.version}</version>
  251. </dependency>
  252. <!--引入模板依赖-->
  253. <dependency>
  254. <groupId>org.freemarker</groupId>
  255. <artifactId>freemarker</artifactId>
  256. <version>${freemarker.version}</version>
  257. </dependency>
  258. <!--引入注解验证依赖-->
  259. <dependency>
  260. <groupId>org.hibernate.validator</groupId>
  261. <artifactId>hibernate-validator</artifactId>
  262. <version>${hibernatevalidator.version}</version>
  263. </dependency>
  264. <!-- 动态数据源 -->
  265. <!-- <dependency>-->
  266. <!-- <groupId>com.baomidou</groupId>-->
  267. <!-- <artifactId>dynamic-datasource-spring-boot-starter</artifactId>-->
  268. <!-- <version>${mybatisplus.dynamic.version}</version>-->
  269. <!-- </dependency>-->
  270. <dependency>
  271. <groupId>com.qiniu</groupId>
  272. <artifactId>qiniu-java-sdk</artifactId>
  273. <version>${qiniu.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.aliyun.oss</groupId>
  277. <artifactId>aliyun-sdk-oss</artifactId>
  278. <version>${aliyun.oss.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>com.huaweicloud</groupId>
  282. <artifactId>esdk-obs-java</artifactId>
  283. <version>${huawei.obs.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.qcloud</groupId>
  287. <artifactId>cos_api</artifactId>
  288. <version>${qcloud.cos.version}</version>
  289. <exclusions>
  290. <exclusion>
  291. <groupId>org.slf4j</groupId>
  292. <artifactId>slf4j-log4j12</artifactId>
  293. </exclusion>
  294. </exclusions>
  295. </dependency>
  296. <dependency>
  297. <groupId>io.minio</groupId>
  298. <artifactId>minio</artifactId>
  299. <version>${minio.oss.version}</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.springframework.boot</groupId>
  303. <artifactId>spring-boot-configuration-processor</artifactId>
  304. <optional>true</optional>
  305. </dependency>
  306. <!--jdk8 可以不需要-->
  307. <dependency>
  308. <groupId>javax.xml.bind</groupId>
  309. <artifactId>jaxb-api</artifactId>
  310. <version>${jaxb.api.version}</version>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.apache.logging.log4j</groupId>
  314. <artifactId>log4j-core</artifactId>
  315. <version>${log4j.core.version}</version>
  316. </dependency>
  317. <!-- mybatis-plus 多表关联 -->
  318. <dependency>
  319. <groupId>com.github.yulichang</groupId>
  320. <artifactId>mybatis-plus-join</artifactId>
  321. <version>${mybatisplus.join.version}</version>
  322. </dependency>
  323. <dependency>
  324. <groupId>cn.smallbun.screw</groupId>
  325. <artifactId>screw-core</artifactId>
  326. <version>${screw.version}</version>
  327. </dependency>
  328. <dependency>
  329. <groupId>com.syyai.spring.boot</groupId>
  330. <artifactId>ureport-spring-boot-starter</artifactId>
  331. <version>${ureport.version}</version>
  332. </dependency>
  333. <dependency>
  334. <groupId>org.camunda.bpm.springboot</groupId>
  335. <artifactId>camunda-bpm-spring-boot-starter</artifactId>
  336. <version>${camunda.version}</version>
  337. </dependency>
  338. <dependency>
  339. <groupId>org.camunda.bpm.springboot</groupId>
  340. <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
  341. <version>${camunda.version}</version>
  342. </dependency>
  343. <dependency>
  344. <groupId>org.codehaus.groovy</groupId>
  345. <artifactId>groovy-all</artifactId>
  346. <version>${groovy.version}</version>
  347. <classifier>sources</classifier>
  348. <type>java-source</type>
  349. </dependency>
  350. <!-- 钉钉用到的jar包 -->
  351. <dependency>
  352. <groupId>taobao-sdk-java-auto</groupId>
  353. <artifactId>taobao-sdk-java-auto</artifactId>
  354. <version>1.0</version>
  355. <scope>system</scope>
  356. <systemPath>${project.basedir}/src/main/resources/lib/taobao-sdk-java-auto.jar</systemPath>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.ssssssss</groupId>
  360. <artifactId>magic-api-spring-boot-starter</artifactId>
  361. <version>${magic.api.version}</version>
  362. </dependency>
  363. <!-- 腾讯云短信 -->
  364. <dependency>
  365. <groupId>com.tencentcloudapi</groupId>
  366. <artifactId>tencentcloud-sdk-java</artifactId>
  367. <version>${tencentcloud.version}</version>
  368. </dependency>
  369. <!-- 阿里云短信 -->
  370. <dependency>
  371. <groupId>com.aliyun</groupId>
  372. <artifactId>aliyun-java-sdk-core</artifactId>
  373. <version>${aliyun.core.version}</version>
  374. </dependency>
  375. <!-- keycloak -->
  376. <dependency>
  377. <groupId>org.keycloak</groupId>
  378. <artifactId>keycloak-authz-client</artifactId>
  379. <version>${keycloak.version}</version>
  380. </dependency>
  381. <dependency>
  382. <groupId>com.unfbx</groupId>
  383. <artifactId>chatgpt-java</artifactId>
  384. <version>${chatgpt.java.version}</version>
  385. </dependency>
  386. <dependency>
  387. <groupId>com.squareup.okio</groupId>
  388. <artifactId>okio</artifactId>
  389. <version>${okio.version}</version>
  390. </dependency>
  391. <!-- excel导入导出 -->
  392. <dependency>
  393. <groupId>com.alibaba</groupId>
  394. <artifactId>easyexcel</artifactId>
  395. <version>${easyexcel.version}</version>
  396. </dependency>
  397. <dependency>
  398. <groupId>org.apache.poi</groupId>
  399. <artifactId>poi</artifactId>
  400. <version>${poi.version}</version>
  401. <!-- <scope>provided</scope>-->
  402. </dependency>
  403. <dependency>
  404. <groupId>org.apache.poi</groupId>
  405. <artifactId>poi-ooxml</artifactId>
  406. <version>${poi.version}</version>
  407. <!-- <scope>provided</scope>-->
  408. </dependency>
  409. <dependency>
  410. <groupId>org.apache.poi</groupId>
  411. <artifactId>ooxml-schemas</artifactId>
  412. <version>${ooxml.schemas.version}</version>
  413. </dependency>
  414. <!--动态给类新增属性 的工具-->
  415. <dependency>
  416. <groupId>org.javassist</groupId>
  417. <artifactId>javassist</artifactId>
  418. <version>${javassist.version}</version>
  419. </dependency>
  420. <!-- 第三方拼音依赖包,配合 hutool-all 包中的 PinyinUtil 拼音工具使用 start -->
  421. <dependency>
  422. <groupId>com.belerweb</groupId>
  423. <artifactId>pinyin4j</artifactId>
  424. <version>${pinyin4j.version}</version>
  425. </dependency>
  426. <!-- 第三方拼音依赖包,配合 hutool-all 包中的 PinyinUtil 拼音工具使用 start -->
  427. <dependency>
  428. <groupId>org.dromara.sms4j</groupId>
  429. <artifactId>sms4j-spring-boot-starter</artifactId>
  430. <version>${sms4j.version}</version>
  431. </dependency>
  432. <dependency>
  433. <groupId>org.smartboot.license</groupId>
  434. <artifactId>license-client</artifactId>
  435. <version>${license.version}</version>
  436. </dependency>
  437. <dependency>
  438. <groupId>me.zhyd.oauth</groupId>
  439. <artifactId>JustAuth</artifactId>
  440. <version>${justauth.version}</version>
  441. </dependency>
  442. <dependency>
  443. <groupId>com.aliyun</groupId>
  444. <artifactId>dingtalk</artifactId>
  445. <version>${dingtalk.version}</version>
  446. </dependency>
  447. <!-- 引入postgres依赖 -->
  448. <dependency>
  449. <groupId>org.postgresql</groupId>
  450. <artifactId>postgresql</artifactId>
  451. <scope>runtime</scope>
  452. </dependency>
  453. <!-- 引入用于生成二维码的zxing-->
  454. <dependency>
  455. <groupId>com.google.zxing</groupId>
  456. <artifactId>core</artifactId>
  457. <version>${zxing.version}</version>
  458. </dependency>
  459. <dependency>
  460. <groupId>com.google.zxing</groupId>
  461. <artifactId>javase</artifactId>
  462. <version>${zxing.version}</version>
  463. </dependency>
  464. <!-- apm日志 -->
  465. <dependency>
  466. <groupId>org.apache.skywalking</groupId>
  467. <artifactId>apm-toolkit-trace</artifactId>
  468. <version>${apm.toolkit.version}</version>
  469. </dependency>
  470. </dependencies>
  471. <build>
  472. <finalName>${project.artifactId}</finalName>
  473. <plugins>
  474. <!--解开以下注释可以指定jdk版本-->
  475. <!-- <plugin>-->
  476. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  477. <!-- <artifactId>maven-compiler-plugin</artifactId>-->
  478. <!-- <version>3.8.1</version>-->
  479. <!-- <configuration>-->
  480. <!-- <source>1.8</source>-->
  481. <!-- <target>1.8</target>-->
  482. <!-- <encoding>${project.build.sourceEncoding}</encoding>-->
  483. <!-- </configuration>-->
  484. <!-- </plugin>-->
  485. <plugin>
  486. <groupId>org.springframework.boot</groupId>
  487. <artifactId>spring-boot-maven-plugin</artifactId>
  488. <configuration>
  489. <includeSystemScope>true</includeSystemScope>
  490. <excludes>
  491. <exclude>
  492. <groupId>org.projectlombok</groupId>
  493. <artifactId>lombok</artifactId>
  494. </exclude>
  495. </excludes>
  496. </configuration>
  497. </plugin>
  498. <plugin>
  499. <groupId>org.apache.maven.plugins</groupId>
  500. <artifactId>maven-surefire-plugin</artifactId>
  501. <configuration>
  502. <skip>true</skip>
  503. </configuration>
  504. </plugin>
  505. <plugin>
  506. <groupId>org.apache.maven.plugins</groupId>
  507. <artifactId>maven-compiler-plugin</artifactId>
  508. <version>3.10.1</version>
  509. <configuration>
  510. <source>11</source>
  511. <target>11</target>
  512. </configuration>
  513. </plugin>
  514. <!--解开以下注释 打包时 会使用 maven插件 上传到docker-->
  515. <!-- &lt;!&ndash;使用docker-maven-plugin插件&ndash;&gt;-->
  516. <!-- <plugin>-->
  517. <!-- <groupId>com.spotify</groupId>-->
  518. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  519. <!-- <version>1.2.2</version>-->
  520. <!-- &lt;!&ndash;将插件绑定在某个phase执行&ndash;&gt;-->
  521. <!-- <executions>-->
  522. <!-- <execution>-->
  523. <!-- <id>build-image</id>-->
  524. <!-- &lt;!&ndash;用户只需执行mvn package ,就会自动执行mvn docker:build&ndash;&gt;-->
  525. <!-- <phase>package</phase>-->
  526. <!-- <goals>-->
  527. <!-- <goal>build</goal>-->
  528. <!-- </goals>-->
  529. <!-- </execution>-->
  530. <!-- </executions>-->
  531. <!-- <configuration>-->
  532. <!-- &lt;!&ndash;指定生成的镜像名,这里是我们的作者名+项目名&ndash;&gt;-->
  533. <!-- <imageName>${project.artifactId}</imageName>-->
  534. <!-- &lt;!&ndash;指定标签 这里指定的是镜像的版本,我们默认版本是latest&ndash;&gt;-->
  535. <!-- <imageTags>-->
  536. <!-- <imageTag>latest</imageTag>-->
  537. <!-- </imageTags>-->
  538. <!-- &lt;!&ndash;指定基础镜像jdk11&ndash;&gt;-->
  539. <!-- <baseImage>openjdk:11-jre</baseImage>-->
  540. <!-- &lt;!&ndash;-->
  541. <!-- 镜像制作人本人信息&ndash;&gt;-->
  542. <!-- <maintainer>343894036@email.com</maintainer>-->
  543. <!-- &lt;!&ndash;切换到ROOT目录&ndash;&gt;-->
  544. <!-- <workdir>/ROOT</workdir>-->
  545. <!-- &lt;!&ndash;查看我们的java版本&ndash;&gt;-->
  546. <!-- <cmd>["java", "-version"]</cmd>-->
  547. <!-- &lt;!&ndash;${project.build.finalName}.jar是打包后生成的jar包的名字&ndash;&gt;-->
  548. <!-- <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>-->
  549. <!-- &lt;!&ndash;指定远程 docker api地址&ndash;&gt;-->
  550. <!-- <dockerHost>http://47.106.153.7:2375</dockerHost>-->
  551. <!-- &lt;!&ndash; 这里是复制 jar 包到 docker 容器指定目录配置 &ndash;&gt;-->
  552. <!-- <resources>-->
  553. <!-- <resource>-->
  554. <!-- <targetPath>/</targetPath>-->
  555. <!-- &lt;!&ndash;jar 包所在的路径 此处配置的 即对应 target 目录&ndash;&gt;-->
  556. <!-- <directory>${project.build.directory}</directory>-->
  557. <!-- &lt;!&ndash;用于指定需要复制的文件 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 &ndash;&gt;-->
  558. <!-- <include>${project.build.finalName}.jar</include>-->
  559. <!-- </resource>-->
  560. <!-- </resources>-->
  561. <!-- </configuration>-->
  562. <!-- </plugin>-->
  563. </plugins>
  564. </build>
  565. </project>