pom.xml 7.3 KB

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