pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>2.8.2.RELEASE</version>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <bladex.project.version>2.8.2.RELEASE</bladex.project.version>
  11. <java.version>1.8</java.version>
  12. <maven.plugin.version>3.8.1</maven.plugin.version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <flowable.version>6.4.2</flowable.version>
  16. <spring.boot.version>2.3.12.RELEASE</spring.boot.version>
  17. <spring.cloud.version>Hoxton.SR11</spring.cloud.version>
  18. <spring.platform.version>Cairo-SR8</spring.platform.version>
  19. <!-- 推荐使用Harbor -->
  20. <docker.registry.url>192.168.0.157</docker.registry.url>
  21. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  22. <docker.username>admin</docker.username>
  23. <docker.password>Harbor12345</docker.password>
  24. <docker.namespace>blade</docker.namespace>
  25. <docker.plugin.version>1.4.13</docker.plugin.version>
  26. </properties>
  27. <modules>
  28. <module>blade-auth</module>
  29. <module>blade-common</module>
  30. <module>blade-gateway</module>
  31. <module>blade-ops</module>
  32. <module>blade-ops-api</module>
  33. <module>blade-plugin</module>
  34. <module>blade-plugin-api</module>
  35. <module>blade-service</module>
  36. <module>blade-service-api</module>
  37. </modules>
  38. <dependencyManagement>
  39. <dependencies>
  40. <!-- https://mvnrepository.com/artifact/org.mapstruct/mapstruct -->
  41. <dependency>
  42. <groupId>org.mapstruct</groupId>
  43. <artifactId>mapstruct</artifactId>
  44. <version>1.4.2.Final</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.mapstruct</groupId>
  48. <artifactId>mapstruct-processor</artifactId>
  49. <version>1.4.2.Final</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok-mapstruct-binding</artifactId>
  54. <version>0.2.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springblade.platform</groupId>
  58. <artifactId>blade-bom</artifactId>
  59. <version>2.8.2.RELEASE</version>
  60. <type>pom</type>
  61. <scope>import</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springblade</groupId>
  65. <artifactId>blade-common</artifactId>
  66. <version>2.8.2.RELEASE</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-dependencies</artifactId>
  71. <version>${spring.boot.version}</version>
  72. <type>pom</type>
  73. <scope>import</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.cloud</groupId>
  77. <artifactId>spring-cloud-dependencies</artifactId>
  78. <version>${spring.cloud.version}</version>
  79. <type>pom</type>
  80. <scope>import</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.spring.platform</groupId>
  84. <artifactId>platform-bom</artifactId>
  85. <version>${spring.platform.version}</version>
  86. <type>pom</type>
  87. <scope>import</scope>
  88. </dependency>
  89. </dependencies>
  90. </dependencyManagement>
  91. <dependencies>
  92. <dependency>
  93. <groupId>org.projectlombok</groupId>
  94. <artifactId>lombok</artifactId>
  95. <scope>provided</scope>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <finalName>${project.name}</finalName>
  100. <resources>
  101. <resource>
  102. <directory>src/main/resources</directory>
  103. </resource>
  104. <resource>
  105. <directory>src/main/java</directory>
  106. <includes>
  107. <include>**/*.xml</include>
  108. </includes>
  109. </resource>
  110. </resources>
  111. <pluginManagement>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-maven-plugin</artifactId>
  116. <version>${spring.boot.version}</version>
  117. <configuration>
  118. <fork>true</fork>
  119. <finalName>${project.build.finalName}</finalName>
  120. <includeSystemScope>true</includeSystemScope>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>com.spotify</groupId>
  132. <artifactId>dockerfile-maven-plugin</artifactId>
  133. <version>${docker.plugin.version}</version>
  134. <configuration>
  135. <username>${docker.username}</username>
  136. <password>${docker.password}</password>
  137. <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository>
  138. <tag>${project.version}</tag>
  139. <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
  140. <buildArgs>
  141. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  142. </buildArgs>
  143. </configuration>
  144. <!--子服务添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
  145. <!--<executions>
  146. <execution>
  147. <id>default</id>
  148. <goals>
  149. <goal>build</goal>
  150. <goal>push</goal>
  151. </goals>
  152. </execution>
  153. </executions>-->
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-antrun-plugin</artifactId>
  158. <executions>
  159. <execution>
  160. <phase>package</phase>
  161. <goals>
  162. <goal>run</goal>
  163. </goals>
  164. <configuration>
  165. <tasks>
  166. <!--suppress UnresolvedMavenProperty -->
  167. <copy overwrite="true"
  168. tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
  169. file="${project.build.directory}/${project.artifactId}.jar" />
  170. </tasks>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </pluginManagement>
  177. <plugins>
  178. <plugin>
  179. <groupId>com.spotify</groupId>
  180. <artifactId>dockerfile-maven-plugin</artifactId>
  181. <configuration>
  182. <skip>true</skip>
  183. </configuration>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-maven-plugin</artifactId>
  188. </plugin>
  189. <plugin>
  190. <artifactId>maven-compiler-plugin</artifactId>
  191. <version>${maven.plugin.version}</version>
  192. <configuration>
  193. <source>${java.version}</source>
  194. <target>${java.version}</target>
  195. <encoding>UTF-8</encoding>
  196. <compilerArgs>
  197. <arg>-parameters</arg>
  198. </compilerArgs>
  199. </configuration>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. <repositories>
  204. <repository>
  205. <id>aliyun-repos</id>
  206. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  207. <snapshots>
  208. <enabled>false</enabled>
  209. </snapshots>
  210. </repository>
  211. <repository>
  212. <id>blade-release</id>
  213. <name>Release Repository</name>
  214. <url>http://nexus.bladex.vip/repository/maven-releases/</url>
  215. </repository>
  216. </repositories>
  217. <pluginRepositories>
  218. <pluginRepository>
  219. <id>aliyun-plugin</id>
  220. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  221. <snapshots>
  222. <enabled>false</enabled>
  223. </snapshots>
  224. </pluginRepository>
  225. </pluginRepositories>
  226. </project>