pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.springblade</groupId>
  7. <artifactId>BladeX-Boot</artifactId>
  8. <packaging>jar</packaging>
  9. <version>2.0.0.RC8</version>
  10. <properties>
  11. <bladex.tool.version>2.0.0.RC8</bladex.tool.version>
  12. <java.version>1.8</java.version>
  13. <swagger.version>2.9.2</swagger.version>
  14. <swagger.models.version>1.5.21</swagger.models.version>
  15. <swagger.bootstrapui.version>1.9.1</swagger.bootstrapui.version>
  16. <mybatis.plus.version>3.1.0</mybatis.plus.version>
  17. <protostuff.version>1.6.0</protostuff.version>
  18. <spring.boot.version>2.1.3.RELEASE</spring.boot.version>
  19. <spring.platform.version>Cairo-SR7</spring.platform.version>
  20. <!-- 推荐使用Harbor -->
  21. <docker.registry.url>10.211.55.5</docker.registry.url>
  22. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  23. <docker.plugin.version>1.2.0</docker.plugin.version>
  24. </properties>
  25. <dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-dependencies</artifactId>
  30. <version>${spring.boot.version}</version>
  31. <type>pom</type>
  32. <scope>import</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>io.spring.platform</groupId>
  36. <artifactId>platform-bom</artifactId>
  37. <version>${spring.platform.version}</version>
  38. <type>pom</type>
  39. <scope>import</scope>
  40. </dependency>
  41. </dependencies>
  42. </dependencyManagement>
  43. <dependencies>
  44. <dependency>
  45. <groupId>org.springblade</groupId>
  46. <artifactId>blade-core-boot</artifactId>
  47. <version>${bladex.tool.version}</version>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>org.springblade</groupId>
  51. <artifactId>blade-core-cloud</artifactId>
  52. </exclusion>
  53. </exclusions>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springblade</groupId>
  57. <artifactId>blade-starter-swagger</artifactId>
  58. <version>${bladex.tool.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springblade</groupId>
  62. <artifactId>blade-starter-tenant</artifactId>
  63. <version>${bladex.tool.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springblade</groupId>
  67. <artifactId>blade-core-auto</artifactId>
  68. <version>${bladex.tool.version}</version>
  69. <scope>provided</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.baomidou</groupId>
  73. <artifactId>mybatis-plus-generator</artifactId>
  74. <version>${mybatis.plus.version}</version>
  75. <scope>provided</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.velocity</groupId>
  79. <artifactId>velocity</artifactId>
  80. <version>1.7</version>
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.projectlombok</groupId>
  85. <artifactId>lombok</artifactId>
  86. <scope>provided</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-devtools</artifactId>
  91. <optional>true</optional>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. </dependencies>
  99. <build>
  100. <finalName>${project.name}</finalName>
  101. <resources>
  102. <resource>
  103. <directory>src/main/resources</directory>
  104. </resource>
  105. <resource>
  106. <directory>src/main/java</directory>
  107. <includes>
  108. <include>**/*.xml</include>
  109. </includes>
  110. </resource>
  111. </resources>
  112. <pluginManagement>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>${spring.boot.version}</version>
  118. <configuration>
  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>docker-maven-plugin</artifactId>
  132. <version>${docker.plugin.version}</version>
  133. <configuration>
  134. <imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
  135. <dockerDirectory>${project.basedir}</dockerDirectory>
  136. <dockerHost>${docker.registry.host}</dockerHost>
  137. <resources>
  138. <resource>
  139. <targetPath>/</targetPath>
  140. <directory>${project.build.directory}</directory>
  141. <include>${project.build.finalName}.jar</include>
  142. </resource>
  143. </resources>
  144. <registryUrl>${docker.registry.url}</registryUrl>
  145. <serverId>${docker.registry.url}</serverId>
  146. <pushImage>true</pushImage>
  147. </configuration>
  148. </plugin>
  149. </plugins>
  150. </pluginManagement>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-maven-plugin</artifactId>
  155. </plugin>
  156. <plugin>
  157. <artifactId>maven-compiler-plugin</artifactId>
  158. <configuration>
  159. <source>${java.version}</source>
  160. <target>${java.version}</target>
  161. <encoding>UTF-8</encoding>
  162. <compilerArgs>
  163. <arg>-parameters</arg>
  164. </compilerArgs>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. <repositories>
  170. <repository>
  171. <id>aliyun-repos</id>
  172. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  173. <snapshots>
  174. <enabled>false</enabled>
  175. </snapshots>
  176. </repository>
  177. <repository>
  178. <id>release</id>
  179. <name>Release Repository</name>
  180. <url>http://nexus.gitee.ltd/repository/maven-releases/</url>
  181. </repository>
  182. </repositories>
  183. <pluginRepositories>
  184. <pluginRepository>
  185. <id>aliyun-plugin</id>
  186. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  187. <snapshots>
  188. <enabled>false</enabled>
  189. </snapshots>
  190. </pluginRepository>
  191. </pluginRepositories>
  192. </project>