pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.springblade</groupId>
  6. <artifactId>BladeX</artifactId>
  7. <version>${revision}</version>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <!-- bladex version -->
  11. <revision>4.0.1.RELEASE</revision>
  12. <java.version>17</java.version>
  13. <maven.plugin.version>3.11.0</maven.plugin.version>
  14. <maven.flatten.version>1.3.0</maven.flatten.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.skip>false</docker.fabric.skip>
  23. <docker.fabric.version>0.42.0</docker.fabric.version>
  24. </properties>
  25. <modules>
  26. <module>blade-auth</module>
  27. <module>blade-common</module>
  28. <module>blade-gateway</module>
  29. <module>blade-ops</module>
  30. <module>blade-ops-api</module>
  31. <module>blade-plugin</module>
  32. <module>blade-plugin-api</module>
  33. <module>blade-service</module>
  34. <module>blade-service-api</module>
  35. </modules>
  36. <dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.springblade.platform</groupId>
  40. <artifactId>blade-bom</artifactId>
  41. <version>${revision}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springblade</groupId>
  47. <artifactId>blade-common</artifactId>
  48. <version>${revision}</version>
  49. </dependency>
  50. <!-- blade api -->
  51. <dependency>
  52. <groupId>org.springblade</groupId>
  53. <artifactId>blade-dict-api</artifactId>
  54. <version>${revision}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springblade</groupId>
  58. <artifactId>blade-scope-api</artifactId>
  59. <version>${revision}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springblade</groupId>
  63. <artifactId>blade-desk-api</artifactId>
  64. <version>${revision}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springblade</groupId>
  68. <artifactId>blade-resource-api</artifactId>
  69. <version>${revision}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springblade</groupId>
  73. <artifactId>blade-user-api</artifactId>
  74. <version>${revision}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springblade</groupId>
  78. <artifactId>blade-flow-api</artifactId>
  79. <version>${revision}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springblade</groupId>
  83. <artifactId>blade-system-api</artifactId>
  84. <version>${revision}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.baomidou</groupId>
  88. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  89. <version>4.3.1</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.github.mpusher</groupId>
  93. <artifactId>mpush-client</artifactId>
  94. <version>0.8.1</version>
  95. </dependency>
  96. </dependencies>
  97. </dependencyManagement>
  98. <dependencies>
  99. <!-- Oracle -->
  100. <!--<dependency>
  101. <groupId>com.oracle</groupId>
  102. <artifactId>ojdbc7</artifactId>
  103. </dependency>-->
  104. <!-- PostgreSql -->
  105. <dependency>
  106. <groupId>org.postgresql</groupId>
  107. <artifactId>postgresql</artifactId>
  108. </dependency>
  109. <!-- SqlServer -->
  110. <!--<dependency>
  111. <groupId>com.microsoft.sqlserver</groupId>
  112. <artifactId>mssql-jdbc</artifactId>
  113. </dependency>-->
  114. <!-- DaMeng -->
  115. <!--<dependency>
  116. <groupId>com.dameng</groupId>
  117. <artifactId>DmJdbcDriver18</artifactId>
  118. </dependency>-->
  119. <!--YashanDB-->
  120. <!--<dependency>
  121. <groupId>com.yashandb.jdbc</groupId>
  122. <artifactId>yasdb-jdbc</artifactId>
  123. </dependency>-->
  124. <!--lombok-->
  125. <dependency>
  126. <groupId>org.projectlombok</groupId>
  127. <artifactId>lombok</artifactId>
  128. <scope>provided</scope>
  129. </dependency>
  130. </dependencies>
  131. <build>
  132. <finalName>${project.name}</finalName>
  133. <resources>
  134. <resource>
  135. <directory>src/main/resources</directory>
  136. </resource>
  137. <resource>
  138. <directory>src/main/java</directory>
  139. <includes>
  140. <include>**/*.xml</include>
  141. </includes>
  142. </resource>
  143. </resources>
  144. <pluginManagement>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. <version>3.2.4</version>
  150. <configuration>
  151. <finalName>${project.build.finalName}</finalName>
  152. <excludes>
  153. <!-- 打包的 jar 中排除 lombok -->
  154. <exclude>
  155. <groupId>org.projectlombok</groupId>
  156. <artifactId>lombok</artifactId>
  157. </exclude>
  158. </excludes>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <goals>
  163. <goal>repackage</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <groupId>io.fabric8</groupId>
  170. <artifactId>docker-maven-plugin</artifactId>
  171. <version>${docker.fabric.version}</version>
  172. <configuration>
  173. <skip>true</skip>
  174. <authConfig>
  175. <username>${docker.username}</username>
  176. <password>${docker.password}</password>
  177. </authConfig>
  178. <registry>${docker.registry.url}</registry>
  179. <images>
  180. <image>
  181. <name>${docker.namespace}/${project.build.finalName}:${project.version}</name>
  182. <alias>${project.name}</alias>
  183. <build>
  184. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  185. </build>
  186. </image>
  187. </images>
  188. <buildArgs>
  189. <JAR_FILE>${basedir}/target/${project.build.finalName}.jar</JAR_FILE>
  190. </buildArgs>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-antrun-plugin</artifactId>
  196. <version>3.1.0</version>
  197. <executions>
  198. <execution>
  199. <phase>package</phase>
  200. <goals>
  201. <goal>run</goal>
  202. </goals>
  203. <configuration>
  204. <target>
  205. <!--suppress UnresolvedMavenProperty -->
  206. <copy overwrite="true"
  207. todir="${project.root.directory}/target"
  208. file="${project.build.directory}/${project.artifactId}.jar"/>
  209. </target>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. </plugins>
  215. </pluginManagement>
  216. <plugins>
  217. <plugin>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-maven-plugin</artifactId>
  220. </plugin>
  221. <plugin>
  222. <artifactId>maven-compiler-plugin</artifactId>
  223. <version>${maven.plugin.version}</version>
  224. <configuration>
  225. <source>${java.version}</source>
  226. <target>${java.version}</target>
  227. <encoding>UTF-8</encoding>
  228. <compilerArgs>
  229. <arg>-parameters</arg>
  230. </compilerArgs>
  231. </configuration>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.codehaus.mojo</groupId>
  235. <artifactId>flatten-maven-plugin</artifactId>
  236. <version>${maven.flatten.version}</version>
  237. <configuration>
  238. <updatePomFile>true</updatePomFile>
  239. <flattenMode>oss</flattenMode>
  240. <pomElements>
  241. <url>remove</url>
  242. <scm>remove</scm>
  243. <developers>remove</developers>
  244. <properties>remove</properties>
  245. <repositories>remove</repositories>
  246. <distributionManagement>remove</distributionManagement>
  247. </pomElements>
  248. </configuration>
  249. <executions>
  250. <execution>
  251. <id>flatten</id>
  252. <phase>process-resources</phase>
  253. <goals>
  254. <goal>flatten</goal>
  255. </goals>
  256. </execution>
  257. <execution>
  258. <id>flatten.clean</id>
  259. <phase>clean</phase>
  260. <goals>
  261. <goal>clean</goal>
  262. </goals>
  263. </execution>
  264. </executions>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.commonjava.maven.plugins</groupId>
  268. <artifactId>directory-maven-plugin</artifactId>
  269. <version>1.0</version>
  270. <executions>
  271. <execution>
  272. <id>directories</id>
  273. <goals>
  274. <goal>highest-basedir</goal>
  275. </goals>
  276. <phase>initialize</phase>
  277. <configuration>
  278. <property>project.root.directory</property>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. </plugins>
  284. </build>
  285. <repositories>
  286. <repository>
  287. <id>aliyun-repos</id>
  288. <name>Aliyun Public Repository</name>
  289. <url>https://maven.aliyun.com/repository/public</url>
  290. <snapshots>
  291. <enabled>false</enabled>
  292. </snapshots>
  293. </repository>
  294. <repository>
  295. <id>bladex</id>
  296. <name>BladeX Release Repository</name>
  297. <url>https://center.javablade.com/api/packages/blade/maven</url>
  298. </repository>
  299. </repositories>
  300. <pluginRepositories>
  301. <pluginRepository>
  302. <id>aliyun-plugin</id>
  303. <name>Aliyun Public Plugin</name>
  304. <url>https://maven.aliyun.com/repository/public</url>
  305. <snapshots>
  306. <enabled>false</enabled>
  307. </snapshots>
  308. </pluginRepository>
  309. </pluginRepositories>
  310. <distributionManagement>
  311. <repository>
  312. <id>bladex</id>
  313. <name>BladeX Release Repository</name>
  314. <url>https://center.javablade.com/api/packages/blade/maven</url>
  315. </repository>
  316. <snapshotRepository>
  317. <id>bladex</id>
  318. <name>BladeX Snapshot Repository</name>
  319. <url>https://center.javablade.com/api/packages/blade/maven</url>
  320. </snapshotRepository>
  321. </distributionManagement>
  322. </project>