pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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>org.springblade</groupId>
  73. <artifactId>blade-core-test</artifactId>
  74. <version>${bladex.tool.version}</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.baomidou</groupId>
  79. <artifactId>mybatis-plus-generator</artifactId>
  80. <version>${mybatis.plus.version}</version>
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.velocity</groupId>
  85. <artifactId>velocity</artifactId>
  86. <version>1.7</version>
  87. <scope>provided</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-devtools</artifactId>
  97. <optional>true</optional>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-test</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. </dependencies>
  105. <build>
  106. <finalName>${project.name}</finalName>
  107. <resources>
  108. <resource>
  109. <directory>src/main/resources</directory>
  110. </resource>
  111. <resource>
  112. <directory>src/main/java</directory>
  113. <includes>
  114. <include>**/*.xml</include>
  115. </includes>
  116. </resource>
  117. </resources>
  118. <pluginManagement>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-maven-plugin</artifactId>
  123. <version>${spring.boot.version}</version>
  124. <configuration>
  125. <finalName>${project.build.finalName}</finalName>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <goals>
  130. <goal>repackage</goal>
  131. </goals>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <plugin>
  136. <groupId>com.spotify</groupId>
  137. <artifactId>docker-maven-plugin</artifactId>
  138. <version>${docker.plugin.version}</version>
  139. <configuration>
  140. <imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
  141. <dockerDirectory>${project.basedir}</dockerDirectory>
  142. <dockerHost>${docker.registry.host}</dockerHost>
  143. <resources>
  144. <resource>
  145. <targetPath>/</targetPath>
  146. <directory>${project.build.directory}</directory>
  147. <include>${project.build.finalName}.jar</include>
  148. </resource>
  149. </resources>
  150. <registryUrl>${docker.registry.url}</registryUrl>
  151. <serverId>${docker.registry.url}</serverId>
  152. <pushImage>true</pushImage>
  153. </configuration>
  154. </plugin>
  155. </plugins>
  156. </pluginManagement>
  157. <plugins>
  158. <plugin>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-maven-plugin</artifactId>
  161. </plugin>
  162. <plugin>
  163. <artifactId>maven-compiler-plugin</artifactId>
  164. <configuration>
  165. <source>${java.version}</source>
  166. <target>${java.version}</target>
  167. <encoding>UTF-8</encoding>
  168. <compilerArgs>
  169. <arg>-parameters</arg>
  170. </compilerArgs>
  171. </configuration>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. <repositories>
  176. <repository>
  177. <id>aliyun-repos</id>
  178. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  179. <snapshots>
  180. <enabled>false</enabled>
  181. </snapshots>
  182. </repository>
  183. <repository>
  184. <id>release</id>
  185. <name>Release Repository</name>
  186. <url>http://nexus.gitee.ltd/repository/maven-releases/</url>
  187. </repository>
  188. </repositories>
  189. <pluginRepositories>
  190. <pluginRepository>
  191. <id>aliyun-plugin</id>
  192. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  193. <snapshots>
  194. <enabled>false</enabled>
  195. </snapshots>
  196. </pluginRepository>
  197. </pluginRepositories>
  198. </project>