pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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>org.springblade</groupId>
  7. <artifactId>BladeX-Boot</artifactId>
  8. <packaging>jar</packaging>
  9. <version>3.0.1.RELEASE</version>
  10. <properties>
  11. <bladex.project.id>blade-api</bladex.project.id>
  12. <bladex.project.version>3.0.1.RELEASE</bladex.project.version>
  13. <java.version>1.8</java.version>
  14. <maven.plugin.version>3.8.1</maven.plugin.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <spring.boot.version>2.7.1</spring.boot.version>
  18. <spring.platform.version>Cairo-SR8</spring.platform.version>
  19. <!-- 推荐使用Harbor -->
  20. <docker.registry.url>192.168.0.157</docker.registry.url>
  21. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  22. <docker.username>admin</docker.username>
  23. <docker.password>Harbor12345</docker.password>
  24. <docker.namespace>blade</docker.namespace>
  25. <docker.plugin.version>1.4.13</docker.plugin.version>
  26. </properties>
  27. <dependencyManagement>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.springblade.platform</groupId>
  31. <artifactId>blade-bom</artifactId>
  32. <version>${bladex.project.version}</version>
  33. <type>pom</type>
  34. <scope>import</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-dependencies</artifactId>
  39. <version>${spring.boot.version}</version>
  40. <type>pom</type>
  41. <scope>import</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.spring.platform</groupId>
  45. <artifactId>platform-bom</artifactId>
  46. <version>${spring.platform.version}</version>
  47. <type>pom</type>
  48. <scope>import</scope>
  49. </dependency>
  50. </dependencies>
  51. </dependencyManagement>
  52. <dependencies>
  53. <!-- Blade -->
  54. <dependency>
  55. <groupId>org.springblade</groupId>
  56. <artifactId>blade-core-boot</artifactId>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.springblade</groupId>
  60. <artifactId>blade-core-cloud</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springblade</groupId>
  66. <artifactId>blade-starter-http</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springblade</groupId>
  70. <artifactId>blade-starter-api-crypto</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springblade</groupId>
  74. <artifactId>blade-starter-datascope</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springblade</groupId>
  78. <artifactId>blade-starter-tenant</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springblade</groupId>
  82. <artifactId>blade-starter-develop</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springblade</groupId>
  86. <artifactId>blade-starter-swagger</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springblade</groupId>
  90. <artifactId>blade-starter-excel</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springblade</groupId>
  94. <artifactId>blade-starter-social</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.github.xiaoymin</groupId>
  98. <artifactId>knife4j-spring-ui</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springblade</groupId>
  102. <artifactId>blade-core-auto</artifactId>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springblade</groupId>
  107. <artifactId>blade-core-test</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <!-- 报表 -->
  111. <dependency>
  112. <groupId>org.springblade</groupId>
  113. <artifactId>blade-starter-report</artifactId>
  114. </dependency>
  115. <!-- 工作流 -->
  116. <dependency>
  117. <groupId>org.springblade</groupId>
  118. <artifactId>blade-starter-flowable</artifactId>
  119. </dependency>
  120. <!-- 验证码 -->
  121. <dependency>
  122. <groupId>com.github.whvcse</groupId>
  123. <artifactId>easy-captcha</artifactId>
  124. </dependency>
  125. <!-- Mybatis-Plus -->
  126. <dependency>
  127. <groupId>com.baomidou</groupId>
  128. <artifactId>mybatis-plus-generator</artifactId>
  129. <scope>provided</scope>
  130. </dependency>
  131. <!--Oss-->
  132. <dependency>
  133. <groupId>org.springblade</groupId>
  134. <artifactId>blade-starter-oss</artifactId>
  135. </dependency>
  136. <!--Sms-->
  137. <dependency>
  138. <groupId>org.springblade</groupId>
  139. <artifactId>blade-starter-sms</artifactId>
  140. </dependency>
  141. <!--MinIO-->
  142. <dependency>
  143. <groupId>io.minio</groupId>
  144. <artifactId>minio</artifactId>
  145. </dependency>
  146. <!--Alioss-->
  147. <dependency>
  148. <groupId>com.aliyun.oss</groupId>
  149. <artifactId>aliyun-sdk-oss</artifactId>
  150. </dependency>
  151. <!--AliSms-->
  152. <dependency>
  153. <groupId>com.aliyun</groupId>
  154. <artifactId>aliyun-java-sdk-core</artifactId>
  155. </dependency>
  156. <!--腾讯COS-->
  157. <dependency>
  158. <groupId>com.qcloud</groupId>
  159. <artifactId>cos_api</artifactId>
  160. </dependency>
  161. <!--腾讯SMS-->
  162. <dependency>
  163. <groupId>com.github.qcloudsms</groupId>
  164. <artifactId>qcloudsms</artifactId>
  165. </dependency>
  166. <!--QiNiu-->
  167. <dependency>
  168. <groupId>com.qiniu</groupId>
  169. <artifactId>qiniu-java-sdk</artifactId>
  170. </dependency>
  171. <!--YunPian-->
  172. <dependency>
  173. <groupId>com.yunpian.sdk</groupId>
  174. <artifactId>yunpian-java-sdk</artifactId>
  175. </dependency>
  176. <!-- lombok -->
  177. <dependency>
  178. <groupId>org.projectlombok</groupId>
  179. <artifactId>lombok</artifactId>
  180. <scope>provided</scope>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.postgresql</groupId>
  184. <artifactId>postgresql</artifactId>
  185. </dependency>
  186. </dependencies>
  187. <build>
  188. <finalName>${bladex.project.id}</finalName>
  189. <resources>
  190. <resource>
  191. <directory>src/main/resources</directory>
  192. </resource>
  193. <resource>
  194. <directory>src/main/java</directory>
  195. <includes>
  196. <include>**/*.xml</include>
  197. </includes>
  198. </resource>
  199. </resources>
  200. <pluginManagement>
  201. <plugins>
  202. <plugin>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-maven-plugin</artifactId>
  205. <version>${spring.boot.version}</version>
  206. <configuration>
  207. <finalName>${project.build.finalName}</finalName>
  208. </configuration>
  209. <executions>
  210. <execution>
  211. <goals>
  212. <goal>repackage</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>com.spotify</groupId>
  219. <artifactId>dockerfile-maven-plugin</artifactId>
  220. <version>${docker.plugin.version}</version>
  221. <configuration>
  222. <username>${docker.username}</username>
  223. <password>${docker.password}</password>
  224. <repository>${docker.registry.url}/${docker.namespace}/${project.build.finalName}</repository>
  225. <tag>${project.version}</tag>
  226. <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
  227. <buildArgs>
  228. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  229. </buildArgs>
  230. </configuration>
  231. <!--添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
  232. <!--<executions>
  233. <execution>
  234. <id>default</id>
  235. <goals>
  236. <goal>build</goal>
  237. <goal>push</goal>
  238. </goals>
  239. </execution>
  240. </executions>-->
  241. </plugin>
  242. </plugins>
  243. </pluginManagement>
  244. <plugins>
  245. <plugin>
  246. <groupId>org.springframework.boot</groupId>
  247. <artifactId>spring-boot-maven-plugin</artifactId>
  248. </plugin>
  249. <plugin>
  250. <artifactId>maven-compiler-plugin</artifactId>
  251. <version>${maven.plugin.version}</version>
  252. <configuration>
  253. <source>${java.version}</source>
  254. <target>${java.version}</target>
  255. <encoding>UTF-8</encoding>
  256. <compilerArgs>
  257. <arg>-parameters</arg>
  258. </compilerArgs>
  259. </configuration>
  260. </plugin>
  261. </plugins>
  262. </build>
  263. <repositories>
  264. <repository>
  265. <id>aliyun-repos</id>
  266. <url>https://maven.aliyun.com/repository/public/</url>
  267. <snapshots>
  268. <enabled>false</enabled>
  269. </snapshots>
  270. </repository>
  271. <repository>
  272. <id>blade-release</id>
  273. <name>Release Repository</name>
  274. <url>http://nexus.javablade.com/repository/maven-releases/</url>
  275. </repository>
  276. </repositories>
  277. <pluginRepositories>
  278. <pluginRepository>
  279. <id>aliyun-plugin</id>
  280. <url>https://maven.aliyun.com/repository/public/</url>
  281. <snapshots>
  282. <enabled>false</enabled>
  283. </snapshots>
  284. </pluginRepository>
  285. </pluginRepositories>
  286. </project>