pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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.RC5</version>
  10. <properties>
  11. <bladex.tool.version>2.0.0.RC5</bladex.tool.version>
  12. <bladex.project.version>2.0.0.RC5</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.springframework.kafka</groupId>
  47. <artifactId>spring-kafka</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springblade</groupId>
  51. <artifactId>blade-core-boot</artifactId>
  52. <version>${bladex.tool.version}</version>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.springblade</groupId>
  56. <artifactId>blade-core-cloud</artifactId>
  57. </exclusion>
  58. </exclusions>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springblade</groupId>
  62. <artifactId>blade-starter-swagger</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. </dependencies>
  94. <build>
  95. <finalName>${project.name}</finalName>
  96. <resources>
  97. <resource>
  98. <directory>src/main/resources</directory>
  99. </resource>
  100. <resource>
  101. <directory>src/main/java</directory>
  102. <includes>
  103. <include>**/*.xml</include>
  104. </includes>
  105. </resource>
  106. </resources>
  107. <pluginManagement>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <version>${spring.boot.version}</version>
  113. <configuration>
  114. <finalName>${project.build.finalName}</finalName>
  115. </configuration>
  116. <executions>
  117. <execution>
  118. <goals>
  119. <goal>repackage</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>com.spotify</groupId>
  126. <artifactId>docker-maven-plugin</artifactId>
  127. <version>${docker.plugin.version}</version>
  128. <configuration>
  129. <imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
  130. <dockerDirectory>${project.basedir}</dockerDirectory>
  131. <dockerHost>${docker.registry.host}</dockerHost>
  132. <resources>
  133. <resource>
  134. <targetPath>/</targetPath>
  135. <directory>${project.build.directory}</directory>
  136. <include>${project.build.finalName}.jar</include>
  137. </resource>
  138. </resources>
  139. <registryUrl>${docker.registry.url}</registryUrl>
  140. <serverId>${docker.registry.url}</serverId>
  141. <pushImage>true</pushImage>
  142. </configuration>
  143. </plugin>
  144. </plugins>
  145. </pluginManagement>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-maven-plugin</artifactId>
  150. </plugin>
  151. <plugin>
  152. <artifactId>maven-compiler-plugin</artifactId>
  153. <configuration>
  154. <source>${java.version}</source>
  155. <target>${java.version}</target>
  156. <encoding>UTF-8</encoding>
  157. <compilerArgs>
  158. <arg>-parameters</arg>
  159. </compilerArgs>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. <repositories>
  165. <repository>
  166. <id>aliyun-repos</id>
  167. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  168. <snapshots>
  169. <enabled>false</enabled>
  170. </snapshots>
  171. </repository>
  172. <repository>
  173. <id>release</id>
  174. <name>Release Repository</name>
  175. <url>http://nexus.gitee.ltd/repository/maven-releases/</url>
  176. </repository>
  177. </repositories>
  178. <pluginRepositories>
  179. <pluginRepository>
  180. <id>aliyun-plugin</id>
  181. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  182. <snapshots>
  183. <enabled>false</enabled>
  184. </snapshots>
  185. </pluginRepository>
  186. </pluginRepositories>
  187. </project>