pom.xml 13 KB

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