pom.xml 25 KB

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