pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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>4.3.0.RELEASE</version>
  10. <properties>
  11. <bladex.project.id>blade-api</bladex.project.id>
  12. <bladex.project.version>4.3.0.RELEASE</bladex.project.version>
  13. <java.version>17</java.version>
  14. <maven.plugin.version>3.11.0</maven.plugin.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <!-- Docker仓库服务配置 -->
  18. <docker.registry.url>192.168.0.188</docker.registry.url>
  19. <docker.username>admin</docker.username>
  20. <docker.password>admin12345</docker.password>
  21. <docker.namespace>blade</docker.namespace>
  22. <docker.fabric.version>0.42.0</docker.fabric.version>
  23. </properties>
  24. <dependencyManagement>
  25. <dependencies>
  26. <!-- Blade -->
  27. <dependency>
  28. <groupId>org.springblade.platform</groupId>
  29. <artifactId>blade-bom</artifactId>
  30. <version>${bladex.project.version}</version>
  31. <type>pom</type>
  32. <scope>import</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springblade</groupId>
  36. <artifactId>blade-core-boot</artifactId>
  37. <version>${bladex.project.version}</version>
  38. <exclusions>
  39. <exclusion>
  40. <groupId>org.springblade</groupId>
  41. <artifactId>blade-core-cloud</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. </dependencies>
  46. </dependencyManagement>
  47. <dependencies>
  48. <!-- ↓ BladeX依赖库 ↓ -->
  49. <dependency>
  50. <groupId>org.springblade</groupId>
  51. <artifactId>blade-core-boot</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springblade</groupId>
  55. <artifactId>blade-core-oauth2</artifactId>
  56. </dependency>
  57. <!-- 多租户字段隔离模式 -->
  58. <dependency>
  59. <groupId>org.springblade</groupId>
  60. <artifactId>blade-starter-tenant</artifactId>
  61. </dependency>
  62. <!-- 多租户数据库隔离模式则引入此配置 -->
  63. <!--<dependency>
  64. <groupId>org.springblade</groupId>
  65. <artifactId>blade-starter-tenant-dynamic</artifactId>
  66. </dependency>-->
  67. <!-- 集成sharding功能则引入此配置 -->
  68. <!--<dependency>
  69. <groupId>org.springblade</groupId>
  70. <artifactId>blade-starter-sharding</artifactId>
  71. </dependency>-->
  72. <!-- zxing生成二维码 -->
  73. <dependency>
  74. <groupId>com.google.zxing</groupId>
  75. <artifactId>core</artifactId>
  76. <version>3.3.3</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.google.zxing</groupId>
  80. <artifactId>javase</artifactId>
  81. <version>3.3.3</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springblade</groupId>
  85. <artifactId>blade-starter-http</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springblade</groupId>
  89. <artifactId>blade-starter-api-crypto</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springblade</groupId>
  93. <artifactId>blade-starter-datascope</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springblade</groupId>
  97. <artifactId>blade-starter-develop</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springblade</groupId>
  101. <artifactId>blade-starter-swagger</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springblade</groupId>
  105. <artifactId>blade-starter-excel</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springblade</groupId>
  109. <artifactId>blade-starter-social</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.github.xiaoymin</groupId>
  113. <artifactId>knife4j-openapi3-ui</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springblade</groupId>
  117. <artifactId>blade-core-test</artifactId>
  118. <scope>test</scope>
  119. </dependency>
  120. <!-- 报表 -->
  121. <dependency>
  122. <groupId>org.springblade</groupId>
  123. <artifactId>blade-starter-report</artifactId>
  124. </dependency>
  125. <!-- 验证码 -->
  126. <dependency>
  127. <groupId>com.github.whvcse</groupId>
  128. <artifactId>easy-captcha</artifactId>
  129. </dependency>
  130. <!-- Mybatis-Plus -->
  131. <dependency>
  132. <groupId>com.baomidou</groupId>
  133. <artifactId>mybatis-plus-generator</artifactId>
  134. </dependency>
  135. <!--Oss-->
  136. <dependency>
  137. <groupId>org.springblade</groupId>
  138. <artifactId>blade-starter-oss</artifactId>
  139. </dependency>
  140. <!--Sms-->
  141. <dependency>
  142. <groupId>org.springblade</groupId>
  143. <artifactId>blade-starter-sms</artifactId>
  144. </dependency>
  145. <!--Aws S3-->
  146. <dependency>
  147. <groupId>com.amazonaws</groupId>
  148. <artifactId>aws-java-sdk-s3</artifactId>
  149. </dependency>
  150. <!--MinIO-->
  151. <dependency>
  152. <groupId>io.minio</groupId>
  153. <artifactId>minio</artifactId>
  154. </dependency>
  155. <!--Alioss-->
  156. <dependency>
  157. <groupId>com.aliyun.oss</groupId>
  158. <artifactId>aliyun-sdk-oss</artifactId>
  159. </dependency>
  160. <!--AliSms-->
  161. <dependency>
  162. <groupId>com.aliyun</groupId>
  163. <artifactId>aliyun-java-sdk-core</artifactId>
  164. </dependency>
  165. <!--华为云Obs-->
  166. <dependency>
  167. <groupId>com.huaweicloud</groupId>
  168. <artifactId>esdk-obs-java</artifactId>
  169. </dependency>
  170. <!--腾讯COS-->
  171. <dependency>
  172. <groupId>com.qcloud</groupId>
  173. <artifactId>cos_api</artifactId>
  174. </dependency>
  175. <!--腾讯SMS-->
  176. <dependency>
  177. <groupId>com.github.qcloudsms</groupId>
  178. <artifactId>qcloudsms</artifactId>
  179. </dependency>
  180. <!--QiNiu-->
  181. <dependency>
  182. <groupId>com.qiniu</groupId>
  183. <artifactId>qiniu-java-sdk</artifactId>
  184. </dependency>
  185. <!--YunPian-->
  186. <dependency>
  187. <groupId>com.yunpian.sdk</groupId>
  188. <artifactId>yunpian-java-sdk</artifactId>
  189. </dependency>
  190. <!-- liteflow -->
  191. <dependency>
  192. <groupId>org.springblade</groupId>
  193. <artifactId>blade-starter-liteflow</artifactId>
  194. </dependency>
  195. <!-- Oracle -->
  196. <!--<dependency>
  197. <groupId>com.oracle</groupId>
  198. <artifactId>ojdbc7</artifactId>
  199. </dependency>-->
  200. <!-- PostgreSql -->
  201. <dependency>
  202. <groupId>org.postgresql</groupId>
  203. <artifactId>postgresql</artifactId>
  204. </dependency>
  205. <!-- SqlServer -->
  206. <!--<dependency>
  207. <groupId>com.microsoft.sqlserver</groupId>
  208. <artifactId>mssql-jdbc</artifactId>
  209. </dependency>-->
  210. <!-- DaMeng -->
  211. <!--<dependency>
  212. <groupId>com.dameng</groupId>
  213. <artifactId>DmJdbcDriver18</artifactId>
  214. </dependency>-->
  215. <!--YashanDB-->
  216. <!--<dependency>
  217. <groupId>com.yashandb.jdbc</groupId>
  218. <artifactId>yasdb-jdbc</artifactId>
  219. </dependency>-->
  220. <!-- 任务调度 -->
  221. <dependency>
  222. <groupId>org.springblade</groupId>
  223. <artifactId>blade-starter-powerjob</artifactId>
  224. </dependency>
  225. <!-- 工作流 -->
  226. <dependency>
  227. <groupId>org.springblade</groupId>
  228. <artifactId>blade-starter-flowable</artifactId>
  229. </dependency>
  230. <!-- auto -->
  231. <dependency>
  232. <groupId>org.springblade</groupId>
  233. <artifactId>blade-core-auto</artifactId>
  234. <scope>provided</scope>
  235. </dependency>
  236. <!-- ↑ BladeX依赖库 ↑ -->
  237. <!-- lombok -->
  238. <dependency>
  239. <groupId>org.projectlombok</groupId>
  240. <artifactId>lombok</artifactId>
  241. <scope>provided</scope>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.alipay.sdk</groupId>
  245. <artifactId>alipay-sdk-java</artifactId>
  246. <version>4.39.282.ALL</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.mybatis</groupId>
  250. <artifactId>mybatis</artifactId>
  251. <version>3.5.16</version>
  252. </dependency>
  253. </dependencies>
  254. <build>
  255. <finalName>${bladex.project.id}</finalName>
  256. <resources>
  257. <resource>
  258. <directory>src/main/resources</directory>
  259. </resource>
  260. <resource>
  261. <directory>src/main/java</directory>
  262. <includes>
  263. <include>**/*.xml</include>
  264. </includes>
  265. </resource>
  266. </resources>
  267. <pluginManagement>
  268. <plugins>
  269. <plugin>
  270. <groupId>org.springframework.boot</groupId>
  271. <artifactId>spring-boot-maven-plugin</artifactId>
  272. <version>3.2.10</version>
  273. <configuration>
  274. <finalName>${project.build.finalName}</finalName>
  275. <excludes>
  276. <!-- 打包的 jar 中排除 lombok -->
  277. <exclude>
  278. <groupId>org.projectlombok</groupId>
  279. <artifactId>lombok</artifactId>
  280. </exclude>
  281. </excludes>
  282. </configuration>
  283. <executions>
  284. <execution>
  285. <goals>
  286. <goal>repackage</goal>
  287. </goals>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <plugin>
  292. <groupId>io.fabric8</groupId>
  293. <artifactId>docker-maven-plugin</artifactId>
  294. <version>${docker.fabric.version}</version>
  295. <configuration>
  296. <authConfig>
  297. <username>${docker.username}</username>
  298. <password>${docker.password}</password>
  299. </authConfig>
  300. <registry>${docker.registry.url}</registry>
  301. <images>
  302. <image>
  303. <name>${docker.namespace}/${project.build.finalName}:${project.version}</name>
  304. <alias>${project.name}</alias>
  305. <build>
  306. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  307. </build>
  308. </image>
  309. </images>
  310. <buildArgs>
  311. <JAR_FILE>${basedir}/target/${project.build.finalName}.jar</JAR_FILE>
  312. </buildArgs>
  313. </configuration>
  314. </plugin>
  315. </plugins>
  316. </pluginManagement>
  317. <plugins>
  318. <plugin>
  319. <groupId>org.springframework.boot</groupId>
  320. <artifactId>spring-boot-maven-plugin</artifactId>
  321. </plugin>
  322. <plugin>
  323. <artifactId>maven-compiler-plugin</artifactId>
  324. <version>${maven.plugin.version}</version>
  325. <configuration>
  326. <source>${java.version}</source>
  327. <target>${java.version}</target>
  328. <encoding>UTF-8</encoding>
  329. <compilerArgs>
  330. <arg>-parameters</arg>
  331. </compilerArgs>
  332. </configuration>
  333. </plugin>
  334. </plugins>
  335. </build>
  336. <repositories>
  337. <repository>
  338. <id>aliyun-repos</id>
  339. <name>Aliyun Public Repository</name>
  340. <url>https://maven.aliyun.com/repository/public</url>
  341. <snapshots>
  342. <enabled>false</enabled>
  343. </snapshots>
  344. </repository>
  345. <repository>
  346. <id>bladex</id>
  347. <name>BladeX Release Repository</name>
  348. <url>https://center.javablade.com/api/packages/blade/maven</url>
  349. </repository>
  350. </repositories>
  351. <pluginRepositories>
  352. <pluginRepository>
  353. <id>aliyun-plugin</id>
  354. <name>Aliyun Public Plugin</name>
  355. <url>https://maven.aliyun.com/repository/public</url>
  356. <snapshots>
  357. <enabled>false</enabled>
  358. </snapshots>
  359. </pluginRepository>
  360. </pluginRepositories>
  361. <distributionManagement>
  362. <repository>
  363. <id>bladex</id>
  364. <name>BladeX Release Repository</name>
  365. <url>https://center.javablade.com/api/packages/blade/maven</url>
  366. </repository>
  367. <snapshotRepository>
  368. <id>bladex</id>
  369. <name>BladeX Snapshot Repository</name>
  370. <url>https://center.javablade.com/api/packages/blade/maven</url>
  371. </snapshotRepository>
  372. </distributionManagement>
  373. </project>