pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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.14</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.shcd</groupId>
  12. <artifactId>ghjg_pdf</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>ghjg_pdf</name>
  15. <description>ghjg_pdf</description>
  16. <properties>
  17. <java.version>8</java.version>
  18. <itext.version>8.0.2</itext.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-freemarker</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.freemarker</groupId>
  27. <artifactId>freemarker</artifactId>
  28. <version>2.3.30</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.oracle.database.jdbc</groupId>
  36. <artifactId>ojdbc11</artifactId>
  37. <scope>runtime</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.projectlombok</groupId>
  41. <artifactId>lombok</artifactId>
  42. <optional>true</optional>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-test</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.poi</groupId>
  51. <artifactId>poi</artifactId>
  52. <version>4.1.0</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.poi</groupId>
  56. <artifactId>poi-ooxml</artifactId>
  57. <version>4.1.0</version>
  58. </dependency>
  59. <!-- pdfbox依赖-->
  60. <dependency>
  61. <groupId>org.apache.pdfbox</groupId>
  62. <artifactId>pdfbox</artifactId>
  63. <version>2.0.24</version>
  64. </dependency>
  65. <!-- itext依赖,但是只能打正规军,adobe适用,wps无效-->
  66. <dependency>
  67. <groupId>com.itextpdf</groupId>
  68. <artifactId>itextpdf</artifactId>
  69. <version>5.5.10</version>
  70. </dependency>
  71. <!-- html转pdf-->
  72. <dependency>
  73. <groupId>com.itextpdf</groupId>
  74. <artifactId>html2pdf</artifactId>
  75. <version>3.0.2</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.codehaus.plexus</groupId>
  79. <artifactId>plexus-component-annotations</artifactId>
  80. <version>2.0.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.luhuiguo.bouncycastle</groupId>
  84. <artifactId>bcprov-jdk15on</artifactId>
  85. <version>1.70</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.itextpdf</groupId>
  89. <artifactId>itext-asian</artifactId>
  90. <version>5.2.0</version>
  91. </dependency>
  92. <!-- 这个是最简单的加密方式,但是需要导入海量的包-->
  93. <!-- always needed -->
  94. <!-- <dependency>
  95. <groupId>com.itextpdf</groupId>
  96. <artifactId>kernel</artifactId>
  97. <version>${itext.version}</version>
  98. </dependency>
  99. &lt;!&ndash; always needed &ndash;&gt;
  100. <dependency>
  101. <groupId>com.itextpdf</groupId>
  102. <artifactId>io</artifactId>
  103. <version>${itext.version}</version>
  104. </dependency>
  105. &lt;!&ndash; always needed &ndash;&gt;
  106. <dependency>
  107. <groupId>com.itextpdf</groupId>
  108. <artifactId>layout</artifactId>
  109. <version>${itext.version}</version>
  110. </dependency>
  111. &lt;!&ndash; only needed for forms &ndash;&gt;
  112. <dependency>
  113. <groupId>com.itextpdf</groupId>
  114. <artifactId>forms</artifactId>
  115. <version>${itext.version}</version>
  116. </dependency>
  117. &lt;!&ndash; only needed for PDF/A &ndash;&gt;
  118. <dependency>
  119. <groupId>com.itextpdf</groupId>
  120. <artifactId>pdfa</artifactId>
  121. <version>${itext.version}</version>
  122. </dependency>
  123. &lt;!&ndash; only needed for digital signatures &ndash;&gt;
  124. <dependency>
  125. <groupId>com.itextpdf</groupId>
  126. <artifactId>sign</artifactId>
  127. <version>${itext.version}</version>
  128. </dependency>
  129. &lt;!&ndash; only needed for barcodes &ndash;&gt;
  130. <dependency>
  131. <groupId>com.itextpdf</groupId>
  132. <artifactId>barcodes</artifactId>
  133. <version>${itext.version}</version>
  134. </dependency>
  135. &lt;!&ndash; only needed for Asian fonts &ndash;&gt;
  136. <dependency>
  137. <groupId>com.itextpdf</groupId>
  138. <artifactId>font-asian</artifactId>
  139. <version>${itext.version}</version>
  140. </dependency>
  141. &lt;!&ndash; only needed for hyphenation &ndash;&gt;
  142. <dependency>
  143. <groupId>com.itextpdf</groupId>
  144. <artifactId>hyph</artifactId>
  145. <version>${itext.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.itextpdf</groupId>
  149. <artifactId>bouncy-castle-adapter</artifactId>
  150. <version>${itext.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.itextpdf</groupId>
  154. <artifactId>itext7-core</artifactId>
  155. <version>8.0.2</version>
  156. </dependency>-->
  157. <!-- Free Spire依赖 免费版会添加水印不能用-->
  158. <!-- <dependency>
  159. <groupId>e-iceblue</groupId>
  160. <artifactId>spire.pdf</artifactId>
  161. <version>10.1.5</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>e-iceblue</groupId>
  165. <artifactId>spire.pdf.free</artifactId>
  166. <version>3.9.0</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>javax.xml.bind</groupId>
  170. <artifactId>jaxb-api</artifactId>
  171. <version>2.3.1</version>
  172. </dependency>-->
  173. </dependencies>
  174. <repositories>
  175. <repository>
  176. <id>com.e-iceblue</id>
  177. <name>e-iceblue</name>
  178. <url>https://repo.e-iceblue.cn/repository/maven-public/</url>
  179. </repository>
  180. </repositories>
  181. <build>
  182. <plugins>
  183. <plugin>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-maven-plugin</artifactId>
  186. <configuration>
  187. <excludes>
  188. <exclude>
  189. <groupId>org.projectlombok</groupId>
  190. <artifactId>lombok</artifactId>
  191. </exclude>
  192. </excludes>
  193. </configuration>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </project>