pom.xml 9.4 KB

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