pom.xml 13 KB

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