pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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>SpringBlade</artifactId>
  7. <version>${revision}</version>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <revision>4.6.0</revision>
  11. <blade.tool.version>4.6.0</blade.tool.version>
  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. <!-- 推荐使用Harbor -->
  16. <docker.registry.url>10.211.55.5</docker.registry.url>
  17. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  18. <docker.plugin.version>1.2.0</docker.plugin.version>
  19. </properties>
  20. <modules>
  21. <module>blade-auth</module>
  22. <module>blade-gateway</module>
  23. <module>blade-ops</module>
  24. <module>blade-service</module>
  25. <module>blade-service-api</module>
  26. <module>blade-common</module>
  27. </modules>
  28. <dependencyManagement>
  29. <dependencies>
  30. <!-- blade bom -->
  31. <dependency>
  32. <groupId>org.springblade</groupId>
  33. <artifactId>blade-core-bom</artifactId>
  34. <version>${blade.tool.version}</version>
  35. <type>pom</type>
  36. <scope>import</scope>
  37. </dependency>
  38. <!-- blade api -->
  39. <dependency>
  40. <groupId>org.springblade</groupId>
  41. <artifactId>blade-common</artifactId>
  42. <version>${revision}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springblade</groupId>
  46. <artifactId>blade-dict-api</artifactId>
  47. <version>${revision}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springblade</groupId>
  51. <artifactId>blade-scope-api</artifactId>
  52. <version>${revision}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springblade</groupId>
  56. <artifactId>blade-desk-api</artifactId>
  57. <version>${revision}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springblade</groupId>
  61. <artifactId>blade-user-api</artifactId>
  62. <version>${revision}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springblade</groupId>
  66. <artifactId>blade-system-api</artifactId>
  67. <version>${revision}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springblade</groupId>
  71. <artifactId>blade-demo-api</artifactId>
  72. <version>${revision}</version>
  73. </dependency>
  74. <!-- SpringAdmin -->
  75. <dependency>
  76. <groupId>de.codecentric</groupId>
  77. <artifactId>spring-boot-admin-starter-server</artifactId>
  78. <version>3.4.1</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>de.codecentric</groupId>
  82. <artifactId>spring-boot-admin-starter-client</artifactId>
  83. <version>3.4.1</version>
  84. </dependency>
  85. <!-- dynamic-datasource -->
  86. <dependency>
  87. <groupId>com.baomidou</groupId>
  88. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  89. <version>4.3.1</version>
  90. </dependency>
  91. </dependencies>
  92. </dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>org.projectlombok</groupId>
  96. <artifactId>lombok</artifactId>
  97. <scope>provided</scope>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <finalName>${project.name}</finalName>
  102. <resources>
  103. <resource>
  104. <directory>src/main/resources</directory>
  105. </resource>
  106. <resource>
  107. <directory>src/main/java</directory>
  108. <includes>
  109. <include>**/*.xml</include>
  110. </includes>
  111. </resource>
  112. </resources>
  113. <pluginManagement>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <version>3.2.10</version>
  119. <configuration>
  120. <finalName>${project.build.finalName}</finalName>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-antrun-plugin</artifactId>
  133. <version>3.1.0</version>
  134. <executions>
  135. <execution>
  136. <phase>package</phase>
  137. <goals>
  138. <goal>run</goal>
  139. </goals>
  140. <configuration>
  141. <target>
  142. <!--suppress UnresolvedMavenProperty -->
  143. <copy overwrite="true"
  144. todir="${project.root.directory}/target"
  145. file="${project.build.directory}/${project.artifactId}.jar"/>
  146. </target>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. </pluginManagement>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.codehaus.mojo</groupId>
  156. <artifactId>flatten-maven-plugin</artifactId>
  157. <version>${maven.flatten.version}</version>
  158. <configuration>
  159. <updatePomFile>true</updatePomFile>
  160. <flattenMode>oss</flattenMode>
  161. <pomElements>
  162. <url>remove</url>
  163. <scm>remove</scm>
  164. <developers>remove</developers>
  165. <properties>remove</properties>
  166. <repositories>remove</repositories>
  167. <distributionManagement>remove</distributionManagement>
  168. </pomElements>
  169. </configuration>
  170. <executions>
  171. <execution>
  172. <id>flatten</id>
  173. <phase>process-resources</phase>
  174. <goals>
  175. <goal>flatten</goal>
  176. </goals>
  177. </execution>
  178. <execution>
  179. <id>flatten.clean</id>
  180. <phase>clean</phase>
  181. <goals>
  182. <goal>clean</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. </plugin>
  191. <plugin>
  192. <artifactId>maven-compiler-plugin</artifactId>
  193. <version>${maven.plugin.version}</version>
  194. <configuration>
  195. <source>${java.version}</source>
  196. <target>${java.version}</target>
  197. <encoding>UTF-8</encoding>
  198. <compilerArgs>
  199. <arg>-parameters</arg>
  200. </compilerArgs>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.commonjava.maven.plugins</groupId>
  205. <artifactId>directory-maven-plugin</artifactId>
  206. <version>1.0</version>
  207. <executions>
  208. <execution>
  209. <id>directories</id>
  210. <goals>
  211. <goal>highest-basedir</goal>
  212. </goals>
  213. <phase>initialize</phase>
  214. <configuration>
  215. <property>project.root.directory</property>
  216. </configuration>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. </plugins>
  221. </build>
  222. <repositories>
  223. <repository>
  224. <id>aliyun-repos</id>
  225. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  226. <snapshots>
  227. <enabled>false</enabled>
  228. </snapshots>
  229. </repository>
  230. </repositories>
  231. <pluginRepositories>
  232. <pluginRepository>
  233. <id>aliyun-plugin</id>
  234. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  235. <snapshots>
  236. <enabled>false</enabled>
  237. </snapshots>
  238. </pluginRepository>
  239. </pluginRepositories>
  240. </project>