pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <groupId>space.anyi</groupId>
  7. <artifactId>amount-verification</artifactId>
  8. <version>0.0.2</version>
  9. <packaging>jar</packaging>
  10. <dependencies>
  11. <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel -->
  12. <dependency>
  13. <groupId>com.alibaba</groupId>
  14. <artifactId>easyexcel</artifactId>
  15. <version>4.0.3</version>
  16. <exclusions>
  17. <exclusion>
  18. <groupId>commons-codec</groupId>
  19. <artifactId>commons-codec</artifactId>
  20. </exclusion>
  21. <exclusion>
  22. <groupId>org.slf4j</groupId>
  23. <artifactId>slf4j-api</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <!-- https://mvnrepository.com/artifact/org.apache.pdfbox/pdfbox -->
  28. <dependency>
  29. <groupId>org.apache.pdfbox</groupId>
  30. <artifactId>pdfbox</artifactId>
  31. <version>3.0.6</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.openjfx</groupId>
  35. <artifactId>javafx-controls</artifactId>
  36. <version>21.0.1</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>net.sourceforge.tess4j</groupId>
  40. <artifactId>tess4j</artifactId>
  41. <version>5.7.0</version>
  42. <exclusions>
  43. <exclusion>
  44. <groupId>commons-io</groupId>
  45. <artifactId>commons-io</artifactId>
  46. </exclusion>
  47. <exclusion>
  48. <groupId>commons-codec</groupId>
  49. <artifactId>commons-codec</artifactId>
  50. </exclusion>
  51. <exclusion>
  52. <groupId>org.apache.pdfbox</groupId>
  53. <artifactId>pdfbox</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
  58. <dependency>
  59. <groupId>ch.qos.logback</groupId>
  60. <artifactId>logback-classic</artifactId>
  61. <version>1.4.14</version>
  62. <scope>compile</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>ch.qos.logback</groupId>
  66. <artifactId>logback-core</artifactId>
  67. <version>1.4.14</version>
  68. </dependency>
  69. <!-- rapidocr这个必须要引入 -->
  70. <!-- 可前往maven中央仓库https://central.sonatype.com/artifact/io.github.mymonstercat/rapidocr/versions,查看版本 -->
  71. <dependency>
  72. <groupId>space.anyi</groupId>
  73. <artifactId>rapidocr</artifactId>
  74. <version>0.0.7</version>
  75. </dependency>
  76. <!-- 一般只需要引入一个,CPU端建议使用onnx,移动端建议使用ncnn -->
  77. <!-- 可前往maven中央仓库https://central.sonatype.com/artifact/io.github.mymonstercat/rapidocr-onnx-platform/versions,查看版本 -->
  78. <dependency>
  79. <groupId>space.anyi</groupId>
  80. <artifactId>rapidocr-onnx-platform</artifactId>
  81. <version>0.0.7</version>
  82. </dependency>
  83. <!--<dependency>-->
  84. <!-- <groupId>io.github.mymonstercat</groupId>-->
  85. <!-- <artifactId>rapidocr-ncnn-platform</artifactId>-->
  86. <!-- <version>0.0.7</version>-->
  87. <!--</dependency>-->
  88. </dependencies>
  89. <properties>
  90. <maven.compiler.source>17</maven.compiler.source>
  91. <maven.compiler.target>17</maven.compiler.target>
  92. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  93. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  94. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  95. </properties>
  96. <build>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-shade-plugin</artifactId>
  101. <version>1.4</version>
  102. <configuration>
  103. <createDependencyReducedPom>true</createDependencyReducedPom>
  104. </configuration>
  105. <executions>
  106. <execution>
  107. <phase>package</phase>
  108. <goals>
  109. <goal>shade</goal>
  110. </goals>
  111. <configuration>
  112. <transformers>
  113. <transformer
  114. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  115. <mainClass>space.anyi.amountVerification.Main</mainClass>
  116. </transformer>
  117. </transformers>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <!--<plugin>-->
  123. <!-- <groupId>org.springframework.boot</groupId>-->
  124. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  125. <!-- <executions>-->
  126. <!-- <execution>-->
  127. <!-- <goals>-->
  128. <!-- <goal>repackage</goal>-->
  129. <!-- </goals>-->
  130. <!-- </execution>-->
  131. <!-- </executions>-->
  132. <!--</plugin>-->
  133. </plugins>
  134. </build>
  135. </project>