pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>3.1.5</version>
  11. <relativePath/>
  12. </parent>
  13. <artifactId>blockchain-transfer</artifactId>
  14. <groupId>com.table</groupId>
  15. <packaging>jar</packaging>
  16. <name>Blockchain Transfer Service</name>
  17. <description>ETH/BNB/TRON transfer service</description>
  18. <properties>
  19. <java.version>20</java.version>
  20. <maven.compiler.source>20</maven.compiler.source>
  21. <maven.compiler.target>20</maven.compiler.target>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. </properties>
  24. <dependencies>
  25. <!-- Spring Boot Starter Web -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <!-- Spring Boot Starter Validation -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-validation</artifactId>
  34. </dependency>
  35. <!-- HTTP Client -->
  36. <dependency>
  37. <groupId>org.apache.httpcomponents.client5</groupId>
  38. <artifactId>httpclient5</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.baomidou</groupId>
  42. <artifactId>mybatis-plus-boot-starter</artifactId>
  43. <version>3.5.4</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>mysql</groupId>
  47. <artifactId>mysql-connector-java</artifactId>
  48. <version>8.0.33</version>
  49. </dependency>
  50. <!-- JSON Processing -->
  51. <!-- Ethereum cryptography -->
  52. <dependency>
  53. <groupId>org.web3j</groupId>
  54. <artifactId>core</artifactId>
  55. <version>4.9.8</version>
  56. <exclusions>
  57. <exclusion>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-databind</artifactId>
  60. </exclusion>
  61. <!-- 排除旧版本的 OkHttp -->
  62. <exclusion>
  63. <groupId>com.squareup.okhttp3</groupId>
  64. <artifactId>okhttp</artifactId>
  65. </exclusion>
  66. <exclusion>
  67. <groupId>com.squareup.okio</groupId>
  68. <artifactId>okio</artifactId>
  69. </exclusion>
  70. </exclusions>
  71. </dependency>
  72. <!-- 统一引入较新版本的 OkHttp(无 Kotlin 依赖的版本) -->
  73. <dependency>
  74. <groupId>com.squareup.okhttp3</groupId>
  75. <artifactId>okhttp</artifactId>
  76. <version>4.12.0</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.github.tronprotocol</groupId>
  80. <artifactId>trident</artifactId>
  81. <version>0.10.0</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>cn.hutool</groupId>
  85. <artifactId>hutool-http</artifactId>
  86. <version>5.8.39</version>
  87. </dependency>
  88. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-json -->
  89. <dependency>
  90. <groupId>cn.hutool</groupId>
  91. <artifactId>hutool-json</artifactId>
  92. <version>5.8.39</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>cn.hutool</groupId>
  96. <artifactId>hutool-crypto</artifactId>
  97. <version>5.8.39</version>
  98. </dependency>
  99. <!-- Lombok -->
  100. <dependency>
  101. <groupId>org.projectlombok</groupId>
  102. <artifactId>lombok</artifactId>
  103. <optional>true</optional>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-amqp</artifactId>
  108. </dependency>
  109. </dependencies>
  110. <!--打包配置-->
  111. <build>
  112. <resources>
  113. <resource>
  114. <directory>src/main/resources</directory>
  115. <filtering>true</filtering>
  116. <includes>
  117. <include>application.yaml</include>
  118. </includes>
  119. </resource>
  120. <resource>
  121. <directory>src/main/resources</directory>
  122. <filtering>false</filtering>
  123. <includes>
  124. <!-- 只包含当前激活环境的配置文件 -->
  125. <include>application-${profile.active}.yaml</include>
  126. <include>application-${profile.active}.properties</include>
  127. </includes>
  128. </resource>
  129. <resource>
  130. <directory>src/main/resources</directory>
  131. <filtering>false</filtering>
  132. <excludes>
  133. <!-- 排除所有其他环境的配置文件 -->
  134. <exclude>application-*.yaml</exclude>
  135. <exclude>application-*.properties</exclude>
  136. <exclude>bootstrap-*.yaml</exclude>
  137. <exclude>bootstrap-*.properties</exclude>
  138. </excludes>
  139. </resource>
  140. </resources>
  141. <plugins>
  142. <plugin>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-maven-plugin</artifactId>
  145. <configuration>
  146. <excludes>
  147. <exclude>
  148. <groupId>org.projectlombok</groupId>
  149. <artifactId>lombok</artifactId>
  150. </exclude>
  151. </excludes>
  152. </configuration>
  153. </plugin>
  154. <!-- 资源过滤插件 -->
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-resources-plugin</artifactId>
  158. <version>3.3.1</version>
  159. <configuration>
  160. <propertiesEncoding>UTF-8</propertiesEncoding>
  161. <useDefaultDelimiters>true</useDefaultDelimiters>
  162. <delimiters>
  163. <delimiter>@</delimiter>
  164. </delimiters>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. <profiles>
  170. <profile>
  171. <id>dev</id>
  172. <properties>
  173. <profile.active>dev</profile.active>
  174. </properties>
  175. <activation>
  176. <activeByDefault>true</activeByDefault>
  177. </activation>
  178. </profile>
  179. <profile>
  180. <id>local</id>
  181. <properties>
  182. <profile.active>local</profile.active>
  183. </properties>
  184. </profile>
  185. <profile>
  186. <id>prod</id>
  187. <properties>
  188. <profile.active>prod</profile.active>
  189. </properties>
  190. </profile>
  191. </profiles>
  192. </project>