pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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. <groupId>com.qmth.file</groupId>
  5. <artifactId>file-server</artifactId>
  6. <version>4.0.0.3</version>
  7. <packaging>jar</packaging>
  8. <name>file-server</name>
  9. <url>http://maven.apache.org</url>
  10. <!-- 属性 -->
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <java.version>1.8</java.version>
  14. <!-- <spring.boot.version>1.5.9.RELEASE</spring.boot.version>-->
  15. <!-- <mysql-connector.version>5.1.38</mysql-connector.version>-->
  16. <commons-lang.version>3.4</commons-lang.version>
  17. <commons-codec.version>1.9</commons-codec.version>
  18. <commons-io.version>2.4</commons-io.version>
  19. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  20. <commons-logging.version>1.2</commons-logging.version>
  21. <commons-configuration.version>1.10</commons-configuration.version>
  22. <fastjson.version>1.2.15</fastjson.version>
  23. <gson.version>2.8.0</gson.version>
  24. <poi.version>3.9</poi.version>
  25. <httpclient.version>4.5.3</httpclient.version>
  26. <httpcore.version>4.4.6</httpcore.version>
  27. <async-http-client.version>1.8.3</async-http-client.version>
  28. <jxls.version>1.0.3</jxls.version>
  29. <jackson-mapper-asl.version>1.5.0</jackson-mapper-asl.version>
  30. <jackson-annotations.version>2.11.0</jackson-annotations.version>
  31. <jackson-core.version>2.11.0</jackson-core.version>
  32. <jackson-databind.version>2.11.0</jackson-databind.version>
  33. <!-- <druid-spring-boot-starter.version>1.1.2</druid-spring-boot-starter.version>-->
  34. <qmth.boot.version>1.0.3</qmth.boot.version>
  35. <nanoid.version>2.0.0</nanoid.version>
  36. <guava.version>27.1-jre</guava.version>
  37. <jetbrains.version>13.0</jetbrains.version>
  38. <httpmime.version>4.5.13</httpmime.version>
  39. <version-plugin.version>2.8.1</version-plugin.version>
  40. </properties>
  41. <!-- spring boot 总体依赖 -->
  42. <parent>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-parent</artifactId>
  45. <version>2.3.0.RELEASE</version>
  46. </parent>
  47. <!-- 依赖管理 -->
  48. <dependencyManagement>
  49. <dependencies>
  50. <!-- mysql驱动 -->
  51. <!-- <dependency>-->
  52. <!-- <groupId>mysql</groupId>-->
  53. <!-- <artifactId>mysql-connector-java</artifactId>-->
  54. <!-- <version>${mysql-connector.version}</version>-->
  55. <!-- </dependency>-->
  56. <dependency>
  57. <groupId>org.apache.commons</groupId>
  58. <artifactId>commons-lang3</artifactId>
  59. <version>${commons-lang.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.google.code.gson</groupId>
  63. <artifactId>gson</artifactId>
  64. <version>${gson.version}</version>
  65. </dependency>
  66. <!-- http client -->
  67. <dependency>
  68. <groupId>org.apache.httpcomponents</groupId>
  69. <artifactId>httpclient</artifactId>
  70. <version>${httpclient.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.httpcomponents</groupId>
  74. <artifactId>httpcore</artifactId>
  75. <version>${httpcore.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.ning</groupId>
  79. <artifactId>async-http-client</artifactId>
  80. <version>${async-http-client.version}</version>
  81. </dependency>
  82. <!-- POI 文档操作 -->
  83. <dependency>
  84. <groupId>org.apache.poi</groupId>
  85. <artifactId>poi</artifactId>
  86. <version>${poi.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.poi</groupId>
  90. <artifactId>poi-ooxml</artifactId>
  91. <version>${poi.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>net.sf.jxls</groupId>
  95. <artifactId>jxls-core</artifactId>
  96. <version>${jxls.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>net.sf.jxls</groupId>
  100. <artifactId>jxls-reader</artifactId>
  101. <version>${jxls.version}</version>
  102. </dependency>
  103. <!-- UE Editor上传依赖包 -->
  104. <dependency>
  105. <groupId>commons-codec</groupId>
  106. <artifactId>commons-codec</artifactId>
  107. <version>${commons-codec.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>commons-io</groupId>
  111. <artifactId>commons-io</artifactId>
  112. <version>${commons-io.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>commons-fileupload</groupId>
  116. <artifactId>commons-fileupload</artifactId>
  117. <version>${commons-fileupload.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>commons-logging</groupId>
  121. <artifactId>commons-logging</artifactId>
  122. <version>${commons-logging.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>commons-configuration</groupId>
  126. <artifactId>commons-configuration</artifactId>
  127. <version>${commons-configuration.version}</version>
  128. </dependency>
  129. <!-- jackson -->
  130. <dependency>
  131. <groupId>org.codehaus.jackson</groupId>
  132. <artifactId>jackson-mapper-asl</artifactId>
  133. <version>${jackson-mapper-asl.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.fasterxml.jackson.core</groupId>
  137. <artifactId>jackson-annotations</artifactId>
  138. <version>${jackson-annotations.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.fasterxml.jackson.core</groupId>
  142. <artifactId>jackson-core</artifactId>
  143. <version>${jackson-core.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.fasterxml.jackson.core</groupId>
  147. <artifactId>jackson-databind</artifactId>
  148. <version>${jackson-databind.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.qmth.boot</groupId>
  152. <artifactId>core-solar</artifactId>
  153. <version>${qmth.boot.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.qmth.boot</groupId>
  157. <artifactId>data-mybatis-plus</artifactId>
  158. <version>${qmth.boot.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.qmth.boot</groupId>
  162. <artifactId>core-uid</artifactId>
  163. <version>${qmth.boot.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.aventrix.jnanoid</groupId>
  167. <artifactId>jnanoid</artifactId>
  168. <version>${nanoid.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>io.springfox</groupId>
  172. <artifactId>springfox-swagger2</artifactId>
  173. <version>2.9.2</version>
  174. </dependency>
  175. <!-- <dependency>-->
  176. <!-- <groupId>com.github.xiaoymin</groupId>-->
  177. <!-- <artifactId>swagger-bootstrap-ui</artifactId>-->
  178. <!-- <version>1.9.6</version>-->
  179. <!-- </dependency>-->
  180. <dependency>
  181. <groupId>io.springfox</groupId>
  182. <artifactId>springfox-swagger-ui</artifactId>
  183. <version>2.9.2</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>com.google.guava</groupId>
  187. <artifactId>guava</artifactId>
  188. <version>${guava.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.jetbrains</groupId>
  192. <artifactId>annotations</artifactId>
  193. <version>${jetbrains.version}</version>
  194. <scope>compile</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.httpcomponents</groupId>
  198. <artifactId>httpmime</artifactId>
  199. <version>${httpmime.version}</version>
  200. </dependency>
  201. </dependencies>
  202. </dependencyManagement>
  203. <dependencies>
  204. <!-- spring boot web支持 -->
  205. <dependency>
  206. <groupId>org.springframework.boot</groupId>
  207. <artifactId>spring-boot-starter-web</artifactId>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework</groupId>
  211. <artifactId>spring-test</artifactId>
  212. </dependency>
  213. <!-- spring boot aop支持 -->
  214. <dependency>
  215. <groupId>org.springframework.boot</groupId>
  216. <artifactId>spring-boot-starter-aop</artifactId>
  217. </dependency>
  218. <!-- spring jdbc 支持 -->
  219. <dependency>
  220. <groupId>org.springframework.boot</groupId>
  221. <artifactId>spring-boot-starter-jdbc</artifactId>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.aventrix.jnanoid</groupId>
  225. <artifactId>jnanoid</artifactId>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.springframework.boot</groupId>
  229. <artifactId>spring-boot-starter-actuator</artifactId>
  230. </dependency>
  231. <!-- pagehelper分页插件
  232. <dependency>
  233. <groupId>com.github.pagehelper</groupId>
  234. <artifactId>pagehelper</artifactId>
  235. <version>5.1.2</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>com.github.pagehelper</groupId>
  239. <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
  240. <version>1.2.3</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.github.pagehelper</groupId>
  244. <artifactId>pagehelper-spring-boot-starter</artifactId>
  245. <version>1.2.3</version>
  246. </dependency>
  247. -->
  248. <!-- mysql驱动 -->
  249. <!-- <dependency>-->
  250. <!-- <groupId>mysql</groupId>-->
  251. <!-- <artifactId>mysql-connector-java</artifactId>-->
  252. <!-- </dependency>-->
  253. <dependency>
  254. <groupId>org.codehaus.jackson</groupId>
  255. <artifactId>jackson-mapper-asl</artifactId>
  256. </dependency>
  257. <!-- POI 文档操作 -->
  258. <dependency>
  259. <groupId>org.apache.poi</groupId>
  260. <artifactId>poi</artifactId>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.poi</groupId>
  264. <artifactId>poi-ooxml</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>net.sf.jxls</groupId>
  268. <artifactId>jxls-core</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>net.sf.jxls</groupId>
  272. <artifactId>jxls-reader</artifactId>
  273. </dependency>
  274. <!-- UE Editor上传依赖包 -->
  275. <dependency>
  276. <groupId>commons-codec</groupId>
  277. <artifactId>commons-codec</artifactId>
  278. </dependency>
  279. <dependency>
  280. <groupId>commons-io</groupId>
  281. <artifactId>commons-io</artifactId>
  282. </dependency>
  283. <dependency>
  284. <groupId>commons-fileupload</groupId>
  285. <artifactId>commons-fileupload</artifactId>
  286. </dependency>
  287. <dependency>
  288. <groupId>commons-configuration</groupId>
  289. <artifactId>commons-configuration</artifactId>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.apache.commons</groupId>
  293. <artifactId>commons-lang3</artifactId>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.apache.httpcomponents</groupId>
  297. <artifactId>httpclient</artifactId>
  298. </dependency>
  299. <dependency>
  300. <groupId>com.ning</groupId>
  301. <artifactId>async-http-client</artifactId>
  302. </dependency>
  303. <dependency>
  304. <groupId>com.fasterxml.jackson.core</groupId>
  305. <artifactId>jackson-annotations</artifactId>
  306. </dependency>
  307. <dependency>
  308. <groupId>com.fasterxml.jackson.core</groupId>
  309. <artifactId>jackson-core</artifactId>
  310. </dependency>
  311. <dependency>
  312. <groupId>com.fasterxml.jackson.core</groupId>
  313. <artifactId>jackson-databind</artifactId>
  314. </dependency>
  315. <dependency>
  316. <groupId>commons-logging</groupId>
  317. <artifactId>commons-logging</artifactId>
  318. </dependency>
  319. <dependency>
  320. <groupId>com.vaadin.external.google</groupId>
  321. <artifactId>android-json</artifactId>
  322. <version>0.0.20131108.vaadin1</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>org.springframework.boot</groupId>
  326. <artifactId>spring-boot-starter-test</artifactId>
  327. <scope>test</scope>
  328. </dependency>
  329. <dependency>
  330. <groupId>com.qmth.boot</groupId>
  331. <artifactId>core-solar</artifactId>
  332. </dependency>
  333. <dependency>
  334. <groupId>com.qmth.boot</groupId>
  335. <artifactId>data-mybatis-plus</artifactId>
  336. </dependency>
  337. <dependency>
  338. <groupId>com.qmth.boot</groupId>
  339. <artifactId>core-uid</artifactId>
  340. </dependency>
  341. <dependency>
  342. <groupId>com.aventrix.jnanoid</groupId>
  343. <artifactId>jnanoid</artifactId>
  344. </dependency>
  345. <dependency>
  346. <groupId>io.springfox</groupId>
  347. <artifactId>springfox-swagger2</artifactId>
  348. </dependency>
  349. <!-- <dependency>-->
  350. <!-- <groupId>com.github.xiaoymin</groupId>-->
  351. <!-- <artifactId>swagger-bootstrap-ui</artifactId>-->
  352. <!-- <version>1.9.6</version>-->
  353. <!-- </dependency>-->
  354. <dependency>
  355. <groupId>io.springfox</groupId>
  356. <artifactId>springfox-swagger-ui</artifactId>
  357. </dependency>
  358. <dependency>
  359. <groupId>com.google.guava</groupId>
  360. <artifactId>guava</artifactId>
  361. </dependency>
  362. <dependency>
  363. <groupId>org.jetbrains</groupId>
  364. <artifactId>annotations</artifactId>
  365. <version>${jetbrains.version}</version>
  366. </dependency>
  367. <dependency>
  368. <groupId>org.apache.httpcomponents</groupId>
  369. <artifactId>httpmime</artifactId>
  370. </dependency>
  371. </dependencies>
  372. <!-- 构建 -->
  373. <build>
  374. <finalName>file-server</finalName>
  375. <resources>
  376. <resource>
  377. <directory>src/main/resources</directory>
  378. <!-- 资源根目录排除各环境的配置,使用单独的资源目录来指定 -->
  379. <excludes>
  380. <exclude>test/*</exclude>
  381. <exclude>production/*</exclude>
  382. <exclude>tpl/*</exclude>
  383. <exclude>application.properties</exclude>
  384. </excludes>
  385. <!-- 是否替换资源中的属性 -->
  386. <filtering>false</filtering>
  387. </resource>
  388. <resource>
  389. <directory>src/main/resources/${package.environment}</directory>
  390. <includes>
  391. <include>application.properties</include>
  392. </includes>
  393. </resource>
  394. </resources>
  395. <plugins>
  396. <plugin>
  397. <groupId>org.springframework.boot</groupId>
  398. <artifactId>spring-boot-maven-plugin</artifactId>
  399. <version>2.6.2</version>
  400. <configuration>
  401. <includeSystemScope>true</includeSystemScope>
  402. </configuration>
  403. <executions>
  404. <execution>
  405. <goals>
  406. <goal>repackage</goal>
  407. </goals>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.apache.maven.plugins</groupId>
  413. <artifactId>maven-compiler-plugin</artifactId>
  414. <configuration>
  415. <encoding>UTF-8</encoding>
  416. <source>${java.version}</source>
  417. <target>${java.version}</target>
  418. </configuration>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.codehaus.mojo</groupId>
  422. <artifactId>versions-maven-plugin</artifactId>
  423. <version>${version-plugin.version}</version>
  424. <configuration>
  425. <generateBackupPoms>false</generateBackupPoms>
  426. </configuration>
  427. </plugin>
  428. <plugin>
  429. <groupId>org.apache.maven.plugins</groupId>
  430. <artifactId>maven-resources-plugin</artifactId>
  431. <version>3.2.0</version>
  432. <configuration>
  433. <encoding>UTF-8</encoding>
  434. <useDefaultDelimiters>false</useDefaultDelimiters>
  435. <delimiters>
  436. <delimiter>$[*]</delimiter>
  437. </delimiters>
  438. <!-- 过滤后缀不需要转码的文件后缀名pdf -->
  439. <nonFilteredFileExtensions>
  440. <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
  441. </nonFilteredFileExtensions>
  442. </configuration>
  443. </plugin>
  444. </plugins>
  445. </build>
  446. <repositories>
  447. <repository>
  448. <id>spring-releases</id>
  449. <url>https://repo.spring.io/libs-release</url>
  450. </repository>
  451. <!-- 阿里云CDN -->
  452. <repository>
  453. <id>sonatype-nexus-staging</id>
  454. <name>Sonatype Nexus Staging</name>
  455. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  456. <releases>
  457. <enabled>true</enabled>
  458. </releases>
  459. <snapshots>
  460. <enabled>true</enabled>
  461. </snapshots>
  462. </repository>
  463. </repositories>
  464. <pluginRepositories>
  465. <pluginRepository>
  466. <id>spring-releases</id>
  467. <url>https://repo.spring.io/libs-release</url>
  468. </pluginRepository>
  469. </pluginRepositories>
  470. <!-- 定义打包环境变量,生产环境;开发环境 -->
  471. <profiles>
  472. <profile>
  473. <id>test</id>
  474. <properties>
  475. <package.environment>test</package.environment>
  476. </properties>
  477. </profile>
  478. <profile>
  479. <id>production</id>
  480. <properties>
  481. <package.environment>production</package.environment>
  482. </properties>
  483. </profile>
  484. <profile>
  485. <id>development</id>
  486. <properties>
  487. <package.environment></package.environment>
  488. </properties>
  489. <activation>
  490. <activeByDefault>true</activeByDefault>
  491. </activation>
  492. </profile>
  493. </profiles>
  494. </project>