pom.xml 9.2 KB

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