pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <artifactId>kkFileView-parent</artifactId>
  8. <groupId>cn.keking</groupId>
  9. <version>4.4.0-beta</version>
  10. </parent>
  11. <artifactId>platomix-gmetry-fileview</artifactId>
  12. <version>4.4.5-20241021</version>
  13. <properties>
  14. <docker.plugin.version>0.40.3</docker.plugin.version>
  15. <docker.registry>docker.platomix.net:10000</docker.registry>
  16. <docker.namespace>platomix</docker.namespace>
  17. </properties>
  18. <dependencyManagement>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-dependencies</artifactId>
  23. <version>${spring.boot.version}</version>
  24. <scope>import</scope>
  25. <type>pom</type>
  26. </dependency>
  27. </dependencies>
  28. </dependencyManagement>
  29. <repositories>
  30. <repository>
  31. <id>aspose-maven-repository</id>
  32. <url>https://repository.aspose.com/repo</url>
  33. <snapshots>
  34. <enabled>false</enabled>
  35. </snapshots>
  36. </repository>
  37. <repository>
  38. <id>alimaven</id>
  39. <name>aliyun maven</name>
  40. <url>https://maven.aliyun.com/repository/public/</url>
  41. <snapshots>
  42. <enabled>false</enabled>
  43. </snapshots>
  44. </repository>
  45. <repository>
  46. <id>platomix-release</id>
  47. <name>NexusReleases</name>
  48. <url>http://windata.platomix.net/nexus/repository/maven-public/</url>
  49. </repository>
  50. </repositories>
  51. <dependencies>
  52. <dependency>
  53. <groupId>com.platomix</groupId>
  54. <artifactId>platomix-gmetry-framework</artifactId>
  55. <version>2.4.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.jodconverter</groupId>
  59. <artifactId>jodconverter-local</artifactId>
  60. <version>${jodconverter.version}</version>
  61. </dependency>
  62. <!-- web start -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-undertow</artifactId>
  66. <exclusions>
  67. <!-- Exclude web sockets -->
  68. <exclusion>
  69. <artifactId>undertow-websockets-jsr</artifactId>
  70. <groupId>io.undertow</groupId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-freemarker</artifactId>
  77. </dependency>
  78. <!-- web end -->
  79. <!-- poi start -->
  80. <dependency>
  81. <groupId>org.apache.poi</groupId>
  82. <artifactId>poi</artifactId>
  83. <version>${poi.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.poi</groupId>
  87. <artifactId>poi-scratchpad</artifactId>
  88. <version>${poi.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.poi</groupId>
  92. <artifactId>poi-ooxml</artifactId>
  93. <version>${poi.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>fr.opensagres.xdocreport</groupId>
  97. <artifactId>org.apache.poi.xwpf.converter.core</artifactId>
  98. <version>${xdocreport.version}</version>
  99. <exclusions>
  100. <exclusion>
  101. <artifactId>poi</artifactId>
  102. <groupId>org.apache.poi</groupId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>fr.opensagres.xdocreport</groupId>
  108. <artifactId>org.apache.poi.xwpf.converter.xhtml</artifactId>
  109. <version>${xdocreport.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>fr.opensagres.xdocreport</groupId>
  113. <artifactId>fr.opensagres.xdocreport.document</artifactId>
  114. <version>${xdocreport.version}</version>
  115. </dependency>
  116. <!-- poi start -->
  117. <dependency>
  118. <groupId>org.apache.httpcomponents</groupId>
  119. <artifactId>httpclient</artifactId>
  120. <version>${httpcomponents.version}</version>
  121. </dependency>
  122. <!-- 对 rar5 的支持 和其他众多压缩支持 可参考 package net.sf.sevenzipjbinding.ArchiveFormat; -->
  123. <dependency>
  124. <groupId>net.sf.sevenzipjbinding</groupId>
  125. <artifactId>sevenzipjbinding</artifactId>
  126. <version>${sevenzipjbinding.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>net.sf.sevenzipjbinding</groupId>
  130. <artifactId>sevenzipjbinding-all-platforms</artifactId>
  131. <version>${sevenzipjbinding.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.commons</groupId>
  135. <artifactId>commons-lang3</artifactId>
  136. <version>${commons-lang3.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.redisson</groupId>
  140. <artifactId>redisson</artifactId>
  141. <version>${redisson.version}</version>
  142. </dependency>
  143. <!-- 编码检测-JUniversalCharDet-->
  144. <dependency>
  145. <groupId>com.googlecode.juniversalchardet</groupId>
  146. <artifactId>juniversalchardet</artifactId>
  147. <version>${juniversalchardet.version}</version>
  148. </dependency>
  149. <!-- 解压(rar)-->
  150. <dependency>
  151. <groupId>com.github.junrar</groupId>
  152. <artifactId>junrar</artifactId>
  153. <version>${junrar.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>net.sourceforge.jchardet</groupId>
  157. <artifactId>jchardet</artifactId>
  158. <version>${jchardet.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>antlr</groupId>
  162. <artifactId>antlr</artifactId>
  163. <version>${antlr.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-cli</groupId>
  167. <artifactId>commons-cli</artifactId>
  168. <version>${commons-cli.version}</version>
  169. </dependency>
  170. <!-- FTP -->
  171. <dependency>
  172. <groupId>commons-net</groupId>
  173. <artifactId>commons-net</artifactId>
  174. <version>${commons-net.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.thoughtworks.xstream</groupId>
  178. <artifactId>xstream</artifactId>
  179. <version>${xstream.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.googlecode.concurrentlinkedhashmap</groupId>
  183. <artifactId>concurrentlinkedhashmap-lru</artifactId>
  184. <version>${concurrentlinkedhashmap.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.rocksdb</groupId>
  188. <artifactId>rocksdbjni</artifactId>
  189. <version>${rocksdb.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.pdfbox</groupId>
  193. <artifactId>pdfbox</artifactId>
  194. <version>${pdfbox.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.pdfbox</groupId>
  198. <artifactId>pdfbox-tools</artifactId>
  199. <version>${pdfbox.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.github.jai-imageio</groupId>
  203. <artifactId>jai-imageio-jpeg2000</artifactId>
  204. <version>${jai-imageio.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.github.jai-imageio</groupId>
  208. <artifactId>jai-imageio-core</artifactId>
  209. <version>${jai-imageio.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.pdfbox</groupId>
  213. <artifactId>jbig2-imageio</artifactId>
  214. <version>${jbig2-imageio.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.aspose</groupId>
  218. <artifactId>aspose-cad</artifactId>
  219. <version>${aspose-cad.version}</version>
  220. </dependency>
  221. <!-- 密钥算法 -->
  222. <dependency>
  223. <groupId>org.bouncycastle</groupId>
  224. <artifactId>bcprov-jdk15on</artifactId>
  225. <version>${bcprov-jdk15on.version}</version>
  226. </dependency>
  227. <!-- url 规范化 -->
  228. <dependency>
  229. <groupId>io.mola.galimatias</groupId>
  230. <artifactId>galimatias</artifactId>
  231. <version>${galimatias.version}</version>
  232. </dependency>
  233. <!-- 以下是bytedeco 基于opencv ffmpeg封装的javacv,用于视频处理 -->
  234. <dependency>
  235. <groupId>org.bytedeco</groupId>
  236. <artifactId>javacv</artifactId>
  237. <version>${bytedeco.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.bytedeco</groupId>
  241. <artifactId>javacpp</artifactId>
  242. <version>${bytedeco.version}</version>
  243. </dependency>
  244. <!-- 此版本中主要兼容linux和windows系统,如需兼容其他系统平台,请引入对应依赖即可 -->
  245. <dependency>
  246. <groupId>org.bytedeco</groupId>
  247. <artifactId>opencv</artifactId>
  248. <version>${opencv.version}</version>
  249. <classifier>linux-x86_64</classifier>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.bytedeco</groupId>
  253. <artifactId>opencv</artifactId>
  254. <version>${opencv.version}</version>
  255. <classifier>windows-x86_64</classifier>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.bytedeco</groupId>
  259. <artifactId>openblas</artifactId>
  260. <version>${openblas.version}</version>
  261. <classifier>linux-x86_64</classifier>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.bytedeco</groupId>
  265. <artifactId>openblas</artifactId>
  266. <version>${openblas.version}</version>
  267. <classifier>windows-x86_64</classifier>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.bytedeco</groupId>
  271. <artifactId>ffmpeg</artifactId>
  272. <version>${ffmpeg.version}</version>
  273. <classifier>linux-x86_64</classifier>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.bytedeco</groupId>
  277. <artifactId>ffmpeg</artifactId>
  278. <version>${ffmpeg.version}</version>
  279. <classifier>windows-x86_64</classifier>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.itextpdf</groupId>
  283. <artifactId>itextpdf</artifactId>
  284. <version>${itextpdf.version}</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>javax.media</groupId>
  288. <artifactId>jai_core</artifactId>
  289. <version>1.1.3</version>
  290. <scope>system</scope>
  291. <systemPath>${pom.basedir}/lib/jai_core-1.1.3.jar</systemPath>
  292. </dependency>
  293. <dependency>
  294. <groupId>javax.media</groupId>
  295. <artifactId>jai_codec</artifactId>
  296. <version>1.1.3</version>
  297. <scope>system</scope>
  298. <systemPath>${pom.basedir}/lib/jai_codec-1.1.3.jar</systemPath>
  299. </dependency>
  300. <!-- test dependency - start -->
  301. <dependency>
  302. <groupId>org.springframework.boot</groupId>
  303. <artifactId>spring-boot-starter-test</artifactId>
  304. <scope>test</scope>
  305. </dependency>
  306. <dependency>
  307. <groupId>commons-httpclient</groupId>
  308. <artifactId>commons-httpclient</artifactId>
  309. <version>${httpclient.version}</version>
  310. <scope>test</scope>
  311. <exclusions>
  312. <exclusion>
  313. <artifactId>commons-logging</artifactId>
  314. <groupId>commons-logging</groupId>
  315. </exclusion>
  316. </exclusions>
  317. </dependency>
  318. <!-- test dependency - end -->
  319. <dependency>
  320. <groupId>org.projectlombok</groupId>
  321. <artifactId>lombok</artifactId>
  322. <scope>provided</scope>
  323. </dependency>
  324. </dependencies>
  325. <build>
  326. <finalName>${project.name}</finalName>
  327. <resources>
  328. <resource>
  329. <directory>src/main/resources</directory>
  330. <includes>
  331. <include>**/*</include>
  332. </includes>
  333. <filtering>false</filtering>
  334. </resource>
  335. <resource>
  336. <directory>src/main/config</directory>
  337. <filtering>true</filtering>
  338. </resource>
  339. </resources>
  340. <plugins>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-resources-plugin</artifactId>
  344. <version>3.1.0</version>
  345. <configuration>
  346. <nonFilteredFileExtensions>
  347. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  348. </nonFilteredFileExtensions>
  349. </configuration>
  350. </plugin>
  351. <plugin>
  352. <groupId>org.springframework.boot</groupId>
  353. <artifactId>spring-boot-maven-plugin</artifactId>
  354. <version>${spring.boot.version}</version>
  355. <configuration>
  356. <includeSystemScope>true</includeSystemScope>
  357. </configuration>
  358. <executions>
  359. <execution>
  360. <goals>
  361. <goal>repackage</goal>
  362. </goals>
  363. </execution>
  364. </executions>
  365. </plugin>
  366. <!-- 附件打包 -->
  367. <plugin>
  368. <groupId>org.apache.maven.plugins</groupId>
  369. <artifactId>maven-assembly-plugin</artifactId>
  370. <version>3.4.2</version>
  371. <configuration>
  372. <appendAssemblyId>false</appendAssemblyId>
  373. <descriptors>
  374. <!-- <descriptor>src/main/assembly/dist-win32.xml</descriptor>-->
  375. <descriptor>src/main/assembly/dist-linux.xml</descriptor>
  376. </descriptors>
  377. </configuration>
  378. <executions>
  379. <execution>
  380. <id>make-assembly</id>
  381. <phase>package</phase>
  382. <goals>
  383. <goal>single</goal>
  384. </goals>
  385. </execution>
  386. </executions>
  387. </plugin>
  388. <!-- docker镜像推送 -->
  389. <plugin>
  390. <groupId>io.fabric8</groupId>
  391. <artifactId>docker-maven-plugin</artifactId>
  392. <version>${docker.plugin.version}</version>
  393. <configuration>
  394. <verbose>true</verbose>
  395. <images>
  396. <image>
  397. <name>${docker.registry}/${docker.namespace}/${project.build.finalName}:${project.version}</name>
  398. <build>
  399. <contextDir>${project.basedir}</contextDir>
  400. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  401. <args>
  402. <TAR_GZ_FILE>${project.build.finalName}.tar.gz</TAR_GZ_FILE>
  403. </args>
  404. </build>
  405. </image>
  406. </images>
  407. <!-- push使用,2种设置方式: 1.使用该配置在maven项目种配置; 2.在maven配置文件setting.xml中添加server节点。
  408. <authConfig> <username>admin</username> <password>123</password> </authConfig> -->
  409. </configuration>
  410. <executions>
  411. <execution>
  412. <id>build-push</id>
  413. <phase>package</phase>
  414. <goals>
  415. <goal>build</goal>
  416. <goal>push</goal>
  417. </goals>
  418. </execution>
  419. </executions>
  420. </plugin>
  421. </plugins>
  422. </build>
  423. </project>