pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.studio.nx</groupId>
  6. <artifactId>yxl</artifactId>
  7. <version>1.0.0-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>yxl</name>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.5.0</version>
  14. <relativePath/> <!-- lookup parent from repository -->
  15. </parent>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <maven.compiler.source>1.8</maven.compiler.source>
  19. <maven.compiler.target>1.8</maven.compiler.target>
  20. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  21. <project.build.locales>zh_CN</project.build.locales>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24. <skipTests>true</skipTests> <!-- 项目打包的时候跳过单元测试 -->
  25. <spring-cloud-starter-openfeign.version>3.0.2</spring-cloud-starter-openfeign.version>
  26. <spring-boot-admin.version>2.4.1</spring-boot-admin.version>
  27. <springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>
  28. <mybatis-plus-boot-starter.version>3.4.3</mybatis-plus-boot-starter.version>
  29. <com.google.zxing.core.version>3.3.3</com.google.zxing.core.version>
  30. <lombok.version>1.18.20</lombok.version>
  31. <mapstruct.version>1.4.2.Final</mapstruct.version>
  32. <fastjson.version>1.2.76</fastjson.version>
  33. <logback-gelf.version>3.0.0</logback-gelf.version>
  34. <docker.image.prefix>/</docker.image.prefix>
  35. <start-class>com.studio.nx.Application</start-class>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>com.studio.nx</groupId>
  40. <artifactId>nx-framework-dto</artifactId>
  41. <version>1.0.0-SNAPSHOT</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.studio.nx</groupId>
  45. <artifactId>nx-framework-entity</artifactId>
  46. <version>1.0.0-SNAPSHOT</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.studio.nx</groupId>
  50. <artifactId>nx-framework-error</artifactId>
  51. <version>1.0.0-SNAPSHOT</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.studio.nx</groupId>
  55. <artifactId>nx-framework-i18n</artifactId>
  56. <version>1.0.0-SNAPSHOT</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.studio.nx</groupId>
  60. <artifactId>nx-framework-jwt</artifactId>
  61. <version>1.0.0-SNAPSHOT</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.studio.nx</groupId>
  65. <artifactId>nx-framework-log</artifactId>
  66. <version>1.0.0-SNAPSHOT</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.studio.nx</groupId>
  70. <artifactId>nx-framework-swagger</artifactId>
  71. <version>1.0.0-SNAPSHOT</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.studio.nx</groupId>
  75. <artifactId>nx-framework-util</artifactId>
  76. <version>1.0.0-SNAPSHOT</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.studio.nx</groupId>
  80. <artifactId>nx-uiac</artifactId>
  81. <version>1.0.0-SNAPSHOT</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.studio.nx</groupId>
  85. <artifactId>nx-address</artifactId>
  86. <version>1.0.0-SNAPSHOT</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.studio.nx</groupId>
  90. <artifactId>nx-app</artifactId>
  91. <version>1.0.0-SNAPSHOT</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.studio.nx</groupId>
  95. <artifactId>nx-business-config</artifactId>
  96. <version>1.0.0-SNAPSHOT</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.studio.nx</groupId>
  100. <artifactId>nx-data-dict</artifactId>
  101. <version>1.0.0-SNAPSHOT</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.studio.nx</groupId>
  105. <artifactId>nx-feedback</artifactId>
  106. <version>1.0.0-SNAPSHOT</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.studio.nx</groupId>
  110. <artifactId>nx-help</artifactId>
  111. <version>1.0.0-SNAPSHOT</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.studio.nx</groupId>
  115. <artifactId>nx-lab</artifactId>
  116. <version>1.0.0-SNAPSHOT</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.studio.nx</groupId>
  120. <artifactId>nx-notice</artifactId>
  121. <version>1.0.0-SNAPSHOT</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.studio.nx</groupId>
  125. <artifactId>nx-oss</artifactId>
  126. <version>1.0.0-SNAPSHOT</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.studio.nx</groupId>
  130. <artifactId>nx-pay</artifactId>
  131. <version>1.0.0-SNAPSHOT</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.studio.nx</groupId>
  135. <artifactId>nx-service-swagger</artifactId>
  136. <version>1.0.0-SNAPSHOT</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.cloud</groupId>
  140. <artifactId>spring-cloud-starter-openfeign</artifactId>
  141. <version>${spring-cloud-starter-openfeign.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-web</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-starter-validation</artifactId>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-starter-data-redis</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-configuration-processor</artifactId>
  158. <optional> true</optional>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-actuator</artifactId>
  163. </dependency>
  164. <dependency>
  165. <groupId>de.codecentric</groupId>
  166. <artifactId>spring-boot-admin-starter-client</artifactId>
  167. <version>${spring-boot-admin.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.boot</groupId>
  171. <artifactId>spring-boot-starter-test</artifactId>
  172. <scope>test</scope>
  173. <exclusions>
  174. <exclusion>
  175. <groupId>org.junit.vintage</groupId>
  176. <artifactId>junit-vintage-engine</artifactId>
  177. </exclusion>
  178. </exclusions>
  179. </dependency>
  180. <dependency>
  181. <groupId>io.springfox</groupId>
  182. <artifactId>springfox-boot-starter</artifactId>
  183. <version>${springfox-boot-starter.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>mysql</groupId>
  187. <artifactId>mysql-connector-java</artifactId>
  188. <scope>runtime</scope>
  189. </dependency>
  190. <dependency>
  191. <groupId>com.baomidou</groupId>
  192. <artifactId>mybatis-plus-boot-starter</artifactId>
  193. <version>${mybatis-plus-boot-starter.version}</version>
  194. </dependency>
  195. <!-- todo spring-cloud-starter-druid-monitor druid-admin -->
  196. <dependency>
  197. <groupId>com.alibaba</groupId>
  198. <artifactId>druid-spring-boot-starter</artifactId>
  199. <version>1.2.4</version>
  200. </dependency>
  201. <!-- 官方封装 https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient -->
  202. <dependency>
  203. <groupId>com.github.wechatpay-apiv3</groupId>
  204. <artifactId>wechatpay-apache-httpclient</artifactId>
  205. <version>0.2.2</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.google.code.gson</groupId>
  209. <artifactId>gson</artifactId>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.google.zxing</groupId>
  213. <artifactId>core</artifactId>
  214. <version>${com.google.zxing.core.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.projectlombok</groupId>
  218. <artifactId>lombok</artifactId>
  219. <optional>true</optional>
  220. <version>${lombok.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.mapstruct</groupId>
  224. <artifactId>mapstruct</artifactId>
  225. <version>${mapstruct.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.mapstruct</groupId>
  229. <artifactId>mapstruct-jdk8</artifactId>
  230. <version>${mapstruct.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.mapstruct</groupId>
  234. <artifactId>mapstruct-processor</artifactId>
  235. <version>${mapstruct.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>com.alibaba</groupId>
  239. <artifactId>fastjson</artifactId>
  240. <version>${fastjson.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>de.siegmar</groupId>
  244. <artifactId>logback-gelf</artifactId>
  245. <version>${logback-gelf.version}</version>
  246. </dependency>
  247. </dependencies>
  248. <build>
  249. <plugins>
  250. <plugin>
  251. <!-- 指定编译版本 -->
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-compiler-plugin</artifactId>
  254. <configuration>
  255. <source>1.8</source>
  256. <target>1.8</target>
  257. <encoding>UTF-8</encoding>
  258. </configuration>
  259. </plugin>
  260. <!-- 获取Git版本信息的插件 -->
  261. <!-- <plugin>-->
  262. <!-- <groupId>pl.project13.maven</groupId>-->
  263. <!-- <artifactId>git-commit-id-plugin</artifactId>-->
  264. <!-- <version>2.1.15</version>-->
  265. <!-- <executions>-->
  266. <!-- <execution>-->
  267. <!-- <goals>-->
  268. <!-- <goal>revision</goal>-->
  269. <!-- </goals>-->
  270. <!-- </execution>-->
  271. <!-- </executions>-->
  272. <!-- <configuration>-->
  273. <!-- <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>-->
  274. <!-- </configuration>-->
  275. <!-- </plugin>-->
  276. <plugin>
  277. <!-- maven打包时,跳过测试 -->
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-surefire-plugin</artifactId>
  280. <configuration>
  281. <skip>true</skip>
  282. </configuration>
  283. </plugin>
  284. <plugin>
  285. <groupId>org.springframework.boot</groupId>
  286. <artifactId>spring-boot-maven-plugin</artifactId>
  287. <configuration>
  288. <mainClass>${start-class}</mainClass>
  289. <layout>ZIP</layout>
  290. <!-- add by 梁展鹏 20201124 打包优化把三方包剔除打包。通过离线上传至服务器 -->
  291. <!-- 只包含以下依赖打到产物jar中(项目内的) -->
  292. <!-- <includes>-->
  293. <!-- <include>-->
  294. <!-- <groupId>com.studio.nx</groupId>-->
  295. <!-- <artifactId>nx-framework-dto</artifactId>-->
  296. <!-- </include>-->
  297. <!-- <include>-->
  298. <!-- <groupId>com.studio.nx</groupId>-->
  299. <!-- <artifactId>nx-framework-entity</artifactId>-->
  300. <!-- </include>-->
  301. <!-- <include>-->
  302. <!-- <groupId>com.studio.nx</groupId>-->
  303. <!-- <artifactId>nx-framework-error</artifactId>-->
  304. <!-- </include>-->
  305. <!-- <include>-->
  306. <!-- <groupId>com.studio.nx</groupId>-->
  307. <!-- <artifactId>nx-framework-i18n</artifactId>-->
  308. <!-- </include>-->
  309. <!-- <include>-->
  310. <!-- <groupId>com.studio.nx</groupId>-->
  311. <!-- <artifactId>nx-framework-jwt</artifactId>-->
  312. <!-- </include>-->
  313. <!-- <include>-->
  314. <!-- <groupId>com.studio.nx</groupId>-->
  315. <!-- <artifactId>nx-framework-log</artifactId>-->
  316. <!-- </include>-->
  317. <!-- <include>-->
  318. <!-- <groupId>com.studio.nx</groupId>-->
  319. <!-- <artifactId>nx-framework-util</artifactId>-->
  320. <!-- </include>-->
  321. <!-- <include>-->
  322. <!-- <groupId>com.studio.nx</groupId>-->
  323. <!-- <artifactId>nx-uiac</artifactId>-->
  324. <!-- </include>-->
  325. <!-- <include>-->
  326. <!-- <groupId>com.studio.nx</groupId>-->
  327. <!-- <artifactId>nx-framework-swagger</artifactId>-->
  328. <!-- </include>-->
  329. <!-- <include>-->
  330. <!-- <groupId>com.studio.nx</groupId>-->
  331. <!-- <artifactId>nx-address</artifactId>-->
  332. <!-- </include>-->
  333. <!-- <include>-->
  334. <!-- <groupId>com.studio.nx</groupId>-->
  335. <!-- <artifactId>nx-app</artifactId>-->
  336. <!-- </include>-->
  337. <!-- <include>-->
  338. <!-- <groupId>com.studio.nx</groupId>-->
  339. <!-- <artifactId>nx-business-config</artifactId>-->
  340. <!-- </include>-->
  341. <!-- <include>-->
  342. <!-- <groupId>com.studio.nx</groupId>-->
  343. <!-- <artifactId>nx-data-dict</artifactId>-->
  344. <!-- </include>-->
  345. <!-- <include>-->
  346. <!-- <groupId>com.studio.nx</groupId>-->
  347. <!-- <artifactId>nx-feedback</artifactId>-->
  348. <!-- </include>-->
  349. <!-- <include>-->
  350. <!-- <groupId>com.studio.nx</groupId>-->
  351. <!-- <artifactId>nx-help</artifactId>-->
  352. <!-- </include>-->
  353. <!--&lt;!&ndash; <include>&ndash;&gt;-->
  354. <!--&lt;!&ndash; <groupId>com.studio.nx</groupId>&ndash;&gt;-->
  355. <!--&lt;!&ndash; <artifactId>nx-im</artifactId>&ndash;&gt;-->
  356. <!--&lt;!&ndash; </include>&ndash;&gt;-->
  357. <!-- <include>-->
  358. <!-- <groupId>com.studio.nx</groupId>-->
  359. <!-- <artifactId>nx-lab</artifactId>-->
  360. <!-- </include>-->
  361. <!-- <include>-->
  362. <!-- <groupId>com.studio.nx</groupId>-->
  363. <!-- <artifactId>nx-notice</artifactId>-->
  364. <!-- </include>-->
  365. <!-- <include>-->
  366. <!-- <groupId>com.studio.nx</groupId>-->
  367. <!-- <artifactId>nx-oss</artifactId>-->
  368. <!-- </include>-->
  369. <!-- <include>-->
  370. <!-- <groupId>com.studio.nx</groupId>-->
  371. <!-- <artifactId>nx-pay</artifactId>-->
  372. <!-- </include>-->
  373. <!-- <include>-->
  374. <!-- <groupId>com.studio.nx</groupId>-->
  375. <!-- <artifactId>nx-service-swagger</artifactId>-->
  376. <!-- </include>-->
  377. <!-- </includes>-->
  378. </configuration>
  379. <executions>
  380. <execution>
  381. <goals>
  382. <goal>repackage</goal>
  383. </goals>
  384. </execution>
  385. </executions>
  386. </plugin>
  387. <!-- <plugin>-->
  388. <!-- &lt;!&ndash; 拷贝依赖 copy-dependencies &ndash;&gt;-->
  389. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  390. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  391. <!-- <executions>-->
  392. <!-- <execution>-->
  393. <!-- <id>copy-dependencies</id>-->
  394. <!-- <phase>package</phase>-->
  395. <!-- <goals>-->
  396. <!-- <goal>copy-dependencies</goal>-->
  397. <!-- </goals>-->
  398. <!-- <configuration>-->
  399. <!-- <excludeGroupIds>com.studio.nx</excludeGroupIds>-->
  400. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
  401. <!-- </configuration>-->
  402. <!-- </execution>-->
  403. <!-- </executions>-->
  404. <!-- </plugin>-->
  405. <!-- <plugin>-->
  406. <!-- &lt;!&ndash; 拷贝资源文件 copy-resources &ndash;&gt;-->
  407. <!-- <artifactId>maven-resources-plugin</artifactId>-->
  408. <!-- <executions>-->
  409. <!-- <execution>-->
  410. <!-- <id>copy-resources</id>-->
  411. <!-- <phase>package</phase>-->
  412. <!-- <goals>-->
  413. <!-- <goal>copy-resources</goal>-->
  414. <!-- </goals>-->
  415. <!-- <configuration>-->
  416. <!-- <resources>-->
  417. <!-- <resource>-->
  418. <!-- <directory>src/main/resources</directory>-->
  419. <!-- </resource>-->
  420. <!-- </resources>-->
  421. <!-- <outputDirectory>${project.build.directory}/resources</outputDirectory>-->
  422. <!-- </configuration>-->
  423. <!-- </execution>-->
  424. <!-- &lt;!&ndash;copy 脚本,把bin目录下的文件复制到,打包目录下&ndash;&gt;-->
  425. <!-- <execution>-->
  426. <!-- <id>copy-bin</id>-->
  427. <!-- <phase>package</phase>-->
  428. <!-- <goals>-->
  429. <!-- <goal>copy-resources</goal>-->
  430. <!-- </goals>-->
  431. <!-- <configuration>-->
  432. <!-- <resources>-->
  433. <!-- <resource>-->
  434. <!-- <directory>bin/</directory>-->
  435. <!-- </resource>-->
  436. <!-- </resources>-->
  437. <!-- <outputDirectory>${project.build.directory}/bin</outputDirectory>-->
  438. <!-- </configuration>-->
  439. <!-- </execution>-->
  440. <!-- </executions>-->
  441. <!-- <configuration>-->
  442. <!-- <nonFilteredFileExtensions>-->
  443. <!-- <nonFilteredFileExtension>xls</nonFilteredFileExtension>-->
  444. <!-- <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>-->
  445. <!-- <nonFilteredFileExtension>doc</nonFilteredFileExtension>-->
  446. <!-- <nonFilteredFileExtension>docx</nonFilteredFileExtension>-->
  447. <!-- <nonFilteredFileExtension>zip</nonFilteredFileExtension>-->
  448. <!-- <nonFilteredFileExtension>py</nonFilteredFileExtension>-->
  449. <!-- <nonFilteredFileExtension>mov</nonFilteredFileExtension>-->
  450. <!-- <nonFilteredFileExtension>mp4</nonFilteredFileExtension>-->
  451. <!-- <nonFilteredFileExtension>psd</nonFilteredFileExtension>-->
  452. <!-- &lt;!&ndash; 证书文件 &ndash;&gt;-->
  453. <!-- <nonFilteredFileExtension>p12</nonFilteredFileExtension>-->
  454. <!-- <nonFilteredFileExtension>pem</nonFilteredFileExtension>-->
  455. <!-- <nonFilteredFileExtension>pfx</nonFilteredFileExtension>-->
  456. <!-- </nonFilteredFileExtensions>-->
  457. <!-- </configuration>-->
  458. <!-- </plugin>-->
  459. <plugin>
  460. <groupId>org.apache.maven.plugins</groupId>
  461. <artifactId>maven-jar-plugin</artifactId>
  462. <configuration>
  463. <archive>
  464. <manifestEntries>
  465. <SCM-Revision>${scmRevision}</SCM-Revision>
  466. <Built-Time>${buildTime}</Built-Time>
  467. </manifestEntries>
  468. </archive>
  469. <excludes>
  470. <exclude>*.conf</exclude>
  471. <exclude>*.yml</exclude>
  472. <exclude>*.xml</exclude>
  473. <exclude>*.properties</exclude>
  474. </excludes>
  475. </configuration>
  476. </plugin>
  477. </plugins>
  478. <resources>
  479. <resource>
  480. <directory>src/main/java</directory>
  481. <includes>
  482. <include>**/*.*</include>
  483. </includes>
  484. </resource>
  485. <resource>
  486. <directory>src/main/resources</directory>
  487. <filtering>true</filtering>
  488. <includes>
  489. <!-- 包含文件夹以及子文件夹下所有资源 -->
  490. <include>**/*.*</include>
  491. </includes>
  492. <excludes>
  493. <!-- 排除资源文件(注意会跟开发环境有关) -->
  494. </excludes>
  495. </resource>
  496. </resources>
  497. </build>
  498. </project>