pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. <dependency>
  41. <groupId>org.springblade.platform</groupId>
  42. <artifactId>blade-bom</artifactId>
  43. <version>2.8.2.RELEASE</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springblade</groupId>
  49. <artifactId>blade-common</artifactId>
  50. <version>2.8.2.RELEASE</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-dependencies</artifactId>
  55. <version>${spring.boot.version}</version>
  56. <type>pom</type>
  57. <scope>import</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-dependencies</artifactId>
  62. <version>${spring.cloud.version}</version>
  63. <type>pom</type>
  64. <scope>import</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>io.spring.platform</groupId>
  68. <artifactId>platform-bom</artifactId>
  69. <version>${spring.platform.version}</version>
  70. <type>pom</type>
  71. <scope>import</scope>
  72. </dependency>
  73. </dependencies>
  74. </dependencyManagement>
  75. <dependencies>
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <scope>provided</scope>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <finalName>${project.name}</finalName>
  84. <resources>
  85. <resource>
  86. <directory>src/main/resources</directory>
  87. </resource>
  88. <resource>
  89. <directory>src/main/java</directory>
  90. <includes>
  91. <include>**/*.xml</include>
  92. </includes>
  93. </resource>
  94. </resources>
  95. <pluginManagement>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-maven-plugin</artifactId>
  100. <version>${spring.boot.version}</version>
  101. <configuration>
  102. <fork>true</fork>
  103. <finalName>${project.build.finalName}</finalName>
  104. </configuration>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <plugin>
  114. <groupId>com.spotify</groupId>
  115. <artifactId>dockerfile-maven-plugin</artifactId>
  116. <version>${docker.plugin.version}</version>
  117. <configuration>
  118. <username>${docker.username}</username>
  119. <password>${docker.password}</password>
  120. <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository>
  121. <tag>${project.version}</tag>
  122. <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
  123. <buildArgs>
  124. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  125. </buildArgs>
  126. </configuration>
  127. <!--子服务添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
  128. <!--<executions>
  129. <execution>
  130. <id>default</id>
  131. <goals>
  132. <goal>build</goal>
  133. <goal>push</goal>
  134. </goals>
  135. </execution>
  136. </executions>-->
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-antrun-plugin</artifactId>
  141. <executions>
  142. <execution>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>run</goal>
  146. </goals>
  147. <configuration>
  148. <tasks>
  149. <!--suppress UnresolvedMavenProperty -->
  150. <copy overwrite="true"
  151. tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
  152. file="${project.build.directory}/${project.artifactId}.jar" />
  153. </tasks>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </pluginManagement>
  160. <plugins>
  161. <plugin>
  162. <groupId>com.spotify</groupId>
  163. <artifactId>dockerfile-maven-plugin</artifactId>
  164. <configuration>
  165. <skip>true</skip>
  166. </configuration>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-maven-plugin</artifactId>
  171. </plugin>
  172. <plugin>
  173. <artifactId>maven-compiler-plugin</artifactId>
  174. <version>${maven.plugin.version}</version>
  175. <configuration>
  176. <source>${java.version}</source>
  177. <target>${java.version}</target>
  178. <encoding>UTF-8</encoding>
  179. <compilerArgs>
  180. <arg>-parameters</arg>
  181. </compilerArgs>
  182. </configuration>
  183. </plugin>
  184. </plugins>
  185. </build>
  186. <repositories>
  187. <repository>
  188. <id>aliyun-repos</id>
  189. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  190. <snapshots>
  191. <enabled>false</enabled>
  192. </snapshots>
  193. </repository>
  194. <repository>
  195. <id>blade-release</id>
  196. <name>Release Repository</name>
  197. <url>http://nexus.bladex.vip/repository/maven-releases/</url>
  198. </repository>
  199. </repositories>
  200. <pluginRepositories>
  201. <pluginRepository>
  202. <id>aliyun-plugin</id>
  203. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  204. <snapshots>
  205. <enabled>false</enabled>
  206. </snapshots>
  207. </pluginRepository>
  208. </pluginRepositories>
  209. </project>