opai服务管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
5.5 KiB

  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>com.bw</groupId>
  9. <artifactId>opai-service-center</artifactId>
  10. <version>0.0.1-SNAPSHOT</version>
  11. </parent>
  12. <groupId>com.bw</groupId>
  13. <artifactId>ocr-service</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>ocr-service</name>
  16. <url>http://maven.apache.org</url>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.alibaba.cloud</groupId>
  27. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-openfeign</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.projectlombok</groupId>
  43. <artifactId>lombok</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>fastjson</artifactId>
  48. <version>2.0.17</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.httpcomponents</groupId>
  52. <artifactId>httpclient</artifactId>
  53. <version>4.5.3</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.httpcomponents</groupId>
  57. <artifactId>httpmime</artifactId>
  58. <version>4.5.13</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>commons-lang</groupId>
  62. <artifactId>commons-lang</artifactId>
  63. <version>2.6</version>
  64. </dependency>
  65. <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
  66. <dependency>
  67. <groupId>com.squareup.okhttp3</groupId>
  68. <artifactId>okhttp</artifactId>
  69. <version>4.9.3</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.kafka</groupId>
  73. <artifactId>spring-kafka</artifactId>
  74. </dependency>
  75. <!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
  76. <dependency>
  77. <groupId>org.apache.poi</groupId>
  78. <artifactId>poi</artifactId>
  79. <version>4.1.2</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.poi</groupId>
  83. <artifactId>poi-ooxml</artifactId>
  84. <version>4.1.2</version>
  85. </dependency>
  86. <!-- 可选,处理复杂 .docx 文件时可能需要 -->
  87. <dependency>
  88. <groupId>org.apache.poi</groupId>
  89. <artifactId>ooxml-schemas</artifactId>
  90. <version>1.4</version>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <!-- <pluginManagement> --><!-- lock down plugins versions to avoid using Maven defaults (may be
  95. moved
  96. to parent pom) -->
  97. <plugins>
  98. <!-- clean lifecycle, see
  99. https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  100. <plugin>
  101. <artifactId>maven-clean-plugin</artifactId>
  102. <version>3.1.0</version>
  103. </plugin>
  104. <!-- default lifecycle, jar packaging: see
  105. https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  106. <plugin>
  107. <artifactId>maven-resources-plugin</artifactId>
  108. <version>3.0.2</version>
  109. </plugin>
  110. <plugin>
  111. <artifactId>maven-compiler-plugin</artifactId>
  112. <version>3.8.0</version>
  113. </plugin>
  114. <plugin>
  115. <artifactId>maven-surefire-plugin</artifactId>
  116. <version>2.22.1</version>
  117. </plugin>
  118. <plugin>
  119. <artifactId>maven-jar-plugin</artifactId>
  120. <version>3.0.2</version>
  121. </plugin>
  122. <plugin>
  123. <artifactId>maven-install-plugin</artifactId>
  124. <version>2.5.2</version>
  125. </plugin>
  126. <plugin>
  127. <artifactId>maven-deploy-plugin</artifactId>
  128. <version>2.8.2</version>
  129. </plugin>
  130. <!-- site lifecycle, see
  131. https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  132. <plugin>
  133. <artifactId>maven-site-plugin</artifactId>
  134. <version>3.7.1</version>
  135. </plugin>
  136. <plugin>
  137. <artifactId>maven-project-info-reports-plugin</artifactId>
  138. <version>3.0.0</version>
  139. </plugin>
  140. <!-- spring-boot-maven-plugin插件就是打包spring boot应用的 -->
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. <configuration>
  145. <mainClass>com.bw.ocr.Application</mainClass>
  146. <layout>ZIP</layout>
  147. <includes>
  148. <include>
  149. <groupId>${project.groupId}</groupId>
  150. <artifactId>${project.artifactId}</artifactId>
  151. </include>
  152. </includes>
  153. </configuration>
  154. <executions>
  155. <execution>
  156. <goals>
  157. <goal>repackage</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-dependency-plugin</artifactId>
  165. <version>3.1.1</version>
  166. <executions>
  167. <execution>
  168. <id>copy</id>
  169. <phase>package</phase>
  170. <goals>
  171. <goal>copy-dependencies</goal>
  172. </goals>
  173. <configuration>
  174. <type>jar</type>
  175. <includeTypes>jar</includeTypes>
  176. <includeScope>runtime</includeScope>
  177. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. </plugins>
  183. <!-- </pluginManagement> -->
  184. </build>
  185. </project>