百度翻译
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.

266 lines
7.6 KiB

  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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.2.4.RELEASE</version>
  9. </parent>
  10. <groupId>com.bw</groupId>
  11. <artifactId>baidu_translate</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <packaging>jar</packaging>
  14. <name>baidu_translate</name>
  15. <url>http://maven.apache.org</url>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <maven.compiler.source>1.8</maven.compiler.source>
  19. <maven.compiler.target>1.8</maven.compiler.target>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>junit</groupId>
  24. <artifactId>junit</artifactId>
  25. <version>4.11</version>
  26. <scope>test</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <!--
  33. https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client -->
  34. <dependency>
  35. <groupId>de.codecentric</groupId>
  36. <artifactId>spring-boot-admin-starter-client</artifactId>
  37. <version>2.2.4</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.google.code.gson</groupId>
  41. <artifactId>gson</artifactId>
  42. <version>2.8.8</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-test</artifactId>
  47. </dependency>
  48. <!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
  49. <dependency>
  50. <groupId>org.springframework</groupId>
  51. <artifactId>spring-test</artifactId>
  52. <version>5.0.10.RELEASE</version>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>commons-io</groupId>
  57. <artifactId>commons-io</artifactId>
  58. <version>1.4</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.alibaba</groupId>
  62. <artifactId>fastjson</artifactId>
  63. <version>2.0.17</version>
  64. </dependency>
  65. <!-- https://mvnrepository.com/artifact/com.mchange/c3p0 -->
  66. <dependency>
  67. <groupId>com.mchange</groupId>
  68. <artifactId>c3p0</artifactId>
  69. <version>0.9.5.5</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>mysql</groupId>
  73. <artifactId>mysql-connector-java</artifactId>
  74. <version>8.0.29</version>
  75. </dependency>
  76. <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
  77. <dependency>
  78. <groupId>com.squareup.okhttp3</groupId>
  79. <artifactId>okhttp</artifactId>
  80. <version>4.9.3</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.httpcomponents</groupId>
  84. <artifactId>httpclient</artifactId>
  85. <version>4.5.3</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>commons-lang</groupId>
  89. <artifactId>commons-lang</artifactId>
  90. <version>2.6</version>
  91. </dependency>
  92. <!--
  93. https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-reflect -->
  94. <dependency>
  95. <groupId>org.jetbrains.kotlin</groupId>
  96. <artifactId>kotlin-reflect</artifactId>
  97. <version>1.6.21</version>
  98. <scope>runtime</scope>
  99. </dependency>
  100. <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
  101. <dependency>
  102. <groupId>org.jsoup</groupId>
  103. <artifactId>jsoup</artifactId>
  104. <version>1.8.1</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.kafka</groupId>
  112. <artifactId>spring-kafka</artifactId>
  113. </dependency>
  114. <!-- <dependency> <groupId>org.springframework.kafka</groupId>
  115. <artifactId>spring-kafka</artifactId>
  116. </dependency> -->
  117. <dependency>
  118. <groupId>cn.hutool</groupId>
  119. <artifactId>hutool-all</artifactId>
  120. <version>5.8.5</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>junit</groupId>
  124. <artifactId>junit</artifactId>
  125. </dependency>
  126. <!-- https://mvnrepository.com/artifact/p6spy/p6spy -->
  127. <dependency>
  128. <groupId>p6spy</groupId>
  129. <artifactId>p6spy</artifactId>
  130. <version>3.9.0</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>commons-collections</groupId>
  134. <artifactId>commons-collections</artifactId>
  135. <version>3.2.2</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.elasticsearch.client</groupId>
  139. <artifactId>transport</artifactId>
  140. <version>6.0.0</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.elasticsearch</groupId>
  144. <artifactId>elasticsearch</artifactId>
  145. <version>6.0.0</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.elasticsearch.plugin</groupId>
  149. <artifactId>transport-netty4-client</artifactId>
  150. <version>6.0.0</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.auth0</groupId>
  154. <artifactId>java-jwt</artifactId>
  155. <version>4.2.2</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.bfd.util</groupId>
  159. <artifactId>pauseTool</artifactId>
  160. <version>1.0</version>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <!-- <pluginManagement> --><!-- lock down plugins versions to avoid using Maven defaults (may be
  165. moved
  166. to parent pom) -->
  167. <plugins>
  168. <!-- clean lifecycle, see
  169. https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  170. <plugin>
  171. <artifactId>maven-clean-plugin</artifactId>
  172. <version>3.1.0</version>
  173. </plugin>
  174. <!-- default lifecycle, jar packaging: see
  175. https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  176. <plugin>
  177. <artifactId>maven-resources-plugin</artifactId>
  178. <version>3.0.2</version>
  179. </plugin>
  180. <plugin>
  181. <artifactId>maven-compiler-plugin</artifactId>
  182. <version>3.8.0</version>
  183. </plugin>
  184. <plugin>
  185. <artifactId>maven-surefire-plugin</artifactId>
  186. <version>2.22.1</version>
  187. </plugin>
  188. <plugin>
  189. <artifactId>maven-jar-plugin</artifactId>
  190. <version>3.0.2</version>
  191. </plugin>
  192. <plugin>
  193. <artifactId>maven-install-plugin</artifactId>
  194. <version>2.5.2</version>
  195. </plugin>
  196. <plugin>
  197. <artifactId>maven-deploy-plugin</artifactId>
  198. <version>2.8.2</version>
  199. </plugin>
  200. <!-- site lifecycle, see
  201. https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  202. <plugin>
  203. <artifactId>maven-site-plugin</artifactId>
  204. <version>3.7.1</version>
  205. </plugin>
  206. <plugin>
  207. <artifactId>maven-project-info-reports-plugin</artifactId>
  208. <version>3.0.0</version>
  209. </plugin>
  210. <!-- spring-boot-maven-plugin插件就是打包spring boot应用的 -->
  211. <plugin>
  212. <groupId>org.springframework.boot</groupId>
  213. <artifactId>spring-boot-maven-plugin</artifactId>
  214. <configuration>
  215. <mainClass>com.bw.translate.Application</mainClass>
  216. <layout>ZIP</layout>
  217. <includes>
  218. <include>
  219. <groupId>${project.groupId}</groupId>
  220. <artifactId>${project.artifactId}</artifactId>
  221. </include>
  222. </includes>
  223. </configuration>
  224. <executions>
  225. <execution>
  226. <goals>
  227. <goal>repackage</goal>
  228. </goals>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-dependency-plugin</artifactId>
  235. <version>3.1.1</version>
  236. <executions>
  237. <execution>
  238. <id>copy</id>
  239. <phase>package</phase>
  240. <goals>
  241. <goal>copy-dependencies</goal>
  242. </goals>
  243. <configuration>
  244. <type>jar</type>
  245. <includeTypes>jar</includeTypes>
  246. <includeScope>runtime</includeScope>
  247. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  248. </configuration>
  249. </execution>
  250. </executions>
  251. </plugin>
  252. </plugins>
  253. <!-- </pluginManagement> -->
  254. </build>
  255. </project>