pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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. <dependency>
  73. <groupId>org.springblade</groupId>
  74. <artifactId>blade-starter-http</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springblade</groupId>
  78. <artifactId>blade-starter-api-crypto</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springblade</groupId>
  82. <artifactId>blade-starter-datascope</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springblade</groupId>
  86. <artifactId>blade-starter-develop</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springblade</groupId>
  90. <artifactId>blade-starter-swagger</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springblade</groupId>
  94. <artifactId>blade-starter-excel</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springblade</groupId>
  98. <artifactId>blade-starter-social</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.github.xiaoymin</groupId>
  102. <artifactId>knife4j-openapi3-ui</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springblade</groupId>
  106. <artifactId>blade-core-test</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <!-- 报表 -->
  110. <dependency>
  111. <groupId>org.springblade</groupId>
  112. <artifactId>blade-starter-report</artifactId>
  113. </dependency>
  114. <!-- 验证码 -->
  115. <dependency>
  116. <groupId>com.github.whvcse</groupId>
  117. <artifactId>easy-captcha</artifactId>
  118. </dependency>
  119. <!-- Mybatis-Plus -->
  120. <dependency>
  121. <groupId>com.baomidou</groupId>
  122. <artifactId>mybatis-plus-generator</artifactId>
  123. </dependency>
  124. <!--Oss-->
  125. <dependency>
  126. <groupId>org.springblade</groupId>
  127. <artifactId>blade-starter-oss</artifactId>
  128. </dependency>
  129. <!--Sms-->
  130. <dependency>
  131. <groupId>org.springblade</groupId>
  132. <artifactId>blade-starter-sms</artifactId>
  133. </dependency>
  134. <!--Aws S3-->
  135. <dependency>
  136. <groupId>com.amazonaws</groupId>
  137. <artifactId>aws-java-sdk-s3</artifactId>
  138. </dependency>
  139. <!--MinIO-->
  140. <dependency>
  141. <groupId>io.minio</groupId>
  142. <artifactId>minio</artifactId>
  143. </dependency>
  144. <!--Alioss-->
  145. <dependency>
  146. <groupId>com.aliyun.oss</groupId>
  147. <artifactId>aliyun-sdk-oss</artifactId>
  148. </dependency>
  149. <!--AliSms-->
  150. <dependency>
  151. <groupId>com.aliyun</groupId>
  152. <artifactId>aliyun-java-sdk-core</artifactId>
  153. </dependency>
  154. <!--华为云Obs-->
  155. <dependency>
  156. <groupId>com.huaweicloud</groupId>
  157. <artifactId>esdk-obs-java</artifactId>
  158. </dependency>
  159. <!--腾讯COS-->
  160. <dependency>
  161. <groupId>com.qcloud</groupId>
  162. <artifactId>cos_api</artifactId>
  163. </dependency>
  164. <!--腾讯SMS-->
  165. <dependency>
  166. <groupId>com.github.qcloudsms</groupId>
  167. <artifactId>qcloudsms</artifactId>
  168. </dependency>
  169. <!--QiNiu-->
  170. <dependency>
  171. <groupId>com.qiniu</groupId>
  172. <artifactId>qiniu-java-sdk</artifactId>
  173. </dependency>
  174. <!--YunPian-->
  175. <dependency>
  176. <groupId>com.yunpian.sdk</groupId>
  177. <artifactId>yunpian-java-sdk</artifactId>
  178. </dependency>
  179. <!-- liteflow -->
  180. <dependency>
  181. <groupId>org.springblade</groupId>
  182. <artifactId>blade-starter-liteflow</artifactId>
  183. </dependency>
  184. <!-- Oracle -->
  185. <!--<dependency>
  186. <groupId>com.oracle</groupId>
  187. <artifactId>ojdbc7</artifactId>
  188. </dependency>-->
  189. <!-- PostgreSql -->
  190. <dependency>
  191. <groupId>org.postgresql</groupId>
  192. <artifactId>postgresql</artifactId>
  193. </dependency>
  194. <!-- SqlServer -->
  195. <!--<dependency>
  196. <groupId>com.microsoft.sqlserver</groupId>
  197. <artifactId>mssql-jdbc</artifactId>
  198. </dependency>-->
  199. <!-- DaMeng -->
  200. <!--<dependency>
  201. <groupId>com.dameng</groupId>
  202. <artifactId>DmJdbcDriver18</artifactId>
  203. </dependency>-->
  204. <!--YashanDB-->
  205. <!--<dependency>
  206. <groupId>com.yashandb.jdbc</groupId>
  207. <artifactId>yasdb-jdbc</artifactId>
  208. </dependency>-->
  209. <!-- 任务调度 -->
  210. <dependency>
  211. <groupId>org.springblade</groupId>
  212. <artifactId>blade-starter-powerjob</artifactId>
  213. </dependency>
  214. <!-- 工作流 -->
  215. <dependency>
  216. <groupId>org.springblade</groupId>
  217. <artifactId>blade-starter-flowable</artifactId>
  218. </dependency>
  219. <!-- auto -->
  220. <dependency>
  221. <groupId>org.springblade</groupId>
  222. <artifactId>blade-core-auto</artifactId>
  223. <scope>provided</scope>
  224. </dependency>
  225. <!-- ↑ BladeX依赖库 ↑ -->
  226. <!-- lombok -->
  227. <dependency>
  228. <groupId>org.projectlombok</groupId>
  229. <artifactId>lombok</artifactId>
  230. <scope>provided</scope>
  231. </dependency>
  232. <dependency>
  233. <groupId>com.alipay.sdk</groupId>
  234. <artifactId>alipay-sdk-java</artifactId>
  235. <version>4.39.282.ALL</version>
  236. </dependency>
  237. </dependencies>
  238. <build>
  239. <finalName>${bladex.project.id}</finalName>
  240. <resources>
  241. <resource>
  242. <directory>src/main/resources</directory>
  243. </resource>
  244. <resource>
  245. <directory>src/main/java</directory>
  246. <includes>
  247. <include>**/*.xml</include>
  248. </includes>
  249. </resource>
  250. </resources>
  251. <pluginManagement>
  252. <plugins>
  253. <plugin>
  254. <groupId>org.springframework.boot</groupId>
  255. <artifactId>spring-boot-maven-plugin</artifactId>
  256. <version>3.2.10</version>
  257. <configuration>
  258. <finalName>${project.build.finalName}</finalName>
  259. <excludes>
  260. <!-- 打包的 jar 中排除 lombok -->
  261. <exclude>
  262. <groupId>org.projectlombok</groupId>
  263. <artifactId>lombok</artifactId>
  264. </exclude>
  265. </excludes>
  266. </configuration>
  267. <executions>
  268. <execution>
  269. <goals>
  270. <goal>repackage</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <plugin>
  276. <groupId>io.fabric8</groupId>
  277. <artifactId>docker-maven-plugin</artifactId>
  278. <version>${docker.fabric.version}</version>
  279. <configuration>
  280. <authConfig>
  281. <username>${docker.username}</username>
  282. <password>${docker.password}</password>
  283. </authConfig>
  284. <registry>${docker.registry.url}</registry>
  285. <images>
  286. <image>
  287. <name>${docker.namespace}/${project.build.finalName}:${project.version}</name>
  288. <alias>${project.name}</alias>
  289. <build>
  290. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  291. </build>
  292. </image>
  293. </images>
  294. <buildArgs>
  295. <JAR_FILE>${basedir}/target/${project.build.finalName}.jar</JAR_FILE>
  296. </buildArgs>
  297. </configuration>
  298. </plugin>
  299. </plugins>
  300. </pluginManagement>
  301. <plugins>
  302. <plugin>
  303. <groupId>org.springframework.boot</groupId>
  304. <artifactId>spring-boot-maven-plugin</artifactId>
  305. </plugin>
  306. <plugin>
  307. <artifactId>maven-compiler-plugin</artifactId>
  308. <version>${maven.plugin.version}</version>
  309. <configuration>
  310. <source>${java.version}</source>
  311. <target>${java.version}</target>
  312. <encoding>UTF-8</encoding>
  313. <compilerArgs>
  314. <arg>-parameters</arg>
  315. </compilerArgs>
  316. </configuration>
  317. </plugin>
  318. </plugins>
  319. </build>
  320. <repositories>
  321. <repository>
  322. <id>aliyun-repos</id>
  323. <name>Aliyun Public Repository</name>
  324. <url>https://maven.aliyun.com/repository/public</url>
  325. <snapshots>
  326. <enabled>false</enabled>
  327. </snapshots>
  328. </repository>
  329. <repository>
  330. <id>bladex</id>
  331. <name>BladeX Release Repository</name>
  332. <url>https://center.javablade.com/api/packages/blade/maven</url>
  333. </repository>
  334. </repositories>
  335. <pluginRepositories>
  336. <pluginRepository>
  337. <id>aliyun-plugin</id>
  338. <name>Aliyun Public Plugin</name>
  339. <url>https://maven.aliyun.com/repository/public</url>
  340. <snapshots>
  341. <enabled>false</enabled>
  342. </snapshots>
  343. </pluginRepository>
  344. </pluginRepositories>
  345. <distributionManagement>
  346. <repository>
  347. <id>bladex</id>
  348. <name>BladeX Release Repository</name>
  349. <url>https://center.javablade.com/api/packages/blade/maven</url>
  350. </repository>
  351. <snapshotRepository>
  352. <id>bladex</id>
  353. <name>BladeX Snapshot Repository</name>
  354. <url>https://center.javablade.com/api/packages/blade/maven</url>
  355. </snapshotRepository>
  356. </distributionManagement>
  357. </project>