pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.6.1</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>com.cec.plugins</groupId>
  12. <artifactId>plugins</artifactId>
  13. <name>plugins</name>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <description>plugins服务</description>
  16. <packaging>jar</packaging>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <maven.compiler.source>1.8</maven.compiler.source>
  22. <maven.compiler.target>1.8</maven.compiler.target>
  23. <maven.test.skip>true</maven.test.skip>
  24. <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  25. <hutool.version>5.8.16</hutool.version>
  26. <!-- docker 配置 -->
  27. <docker.build.url>http://127.0.0.1:2375</docker.build.url>
  28. </properties>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-validation</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-devtools</artifactId>
  45. <scope>runtime</scope>
  46. <optional>true</optional>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-configuration-processor</artifactId>
  51. <optional>true</optional>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.projectlombok</groupId>
  55. <artifactId>lombok</artifactId>
  56. <optional>true</optional>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-test</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>io.projectreactor</groupId>
  65. <artifactId>reactor-test</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>cn.hutool</groupId>
  70. <artifactId>hutool-core</artifactId>
  71. <version>${hutool.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>cn.hutool</groupId>
  75. <artifactId>hutool-extra</artifactId>
  76. <version>${hutool.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>cn.hutool</groupId>
  80. <artifactId>hutool-json</artifactId>
  81. <version>${hutool.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>cn.hutool</groupId>
  85. <artifactId>hutool-http</artifactId>
  86. <version>${hutool.version}</version>
  87. </dependency>
  88. <!-- https://mvnrepository.com/artifact/org.redisson/redisson-spring-boot-starter -->
  89. <dependency>
  90. <groupId>org.redisson</groupId>
  91. <artifactId>redisson-spring-boot-starter</artifactId>
  92. <version>3.17.1</version>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <finalName>${project.artifactId}</finalName>
  97. <resources>
  98. <resource>
  99. <directory>src/main/resources</directory>
  100. <filtering>false</filtering>
  101. </resource>
  102. </resources>
  103. <plugins>
  104. <!--代码格式插件,默认使用spring 规则-->
  105. <plugin>
  106. <groupId>io.spring.javaformat</groupId>
  107. <artifactId>spring-javaformat-maven-plugin</artifactId>
  108. <version>0.0.32</version>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. <configuration>
  114. <executable>true</executable>
  115. <layout>ZIP</layout>
  116. <includes>
  117. <include>
  118. <groupId>null</groupId>
  119. <artifactId>null</artifactId>
  120. </include>
  121. </includes>
  122. <excludes>
  123. <exclude>
  124. <groupId>org.projectlombok</groupId>
  125. <artifactId>lombok</artifactId>
  126. </exclude>
  127. </excludes>
  128. </configuration>
  129. </plugin>
  130. <!--拷贝依赖到jar外面的lib目录-->
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-dependency-plugin</artifactId>
  134. <executions>
  135. <execution>
  136. <id>copy</id>
  137. <phase>package</phase>
  138. <goals>
  139. <goal>copy-dependencies</goal>
  140. </goals>
  141. <configuration>
  142. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  143. <excludeTransitive>false</excludeTransitive>
  144. <stripVersion>false</stripVersion>
  145. <silent>true</silent>
  146. </configuration>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-assembly-plugin</artifactId>
  153. <version>3.3.0</version>
  154. <configuration>
  155. <appendAssemblyId>false</appendAssemblyId>
  156. <descriptors>
  157. <descriptor>src/assembly/assembly.xml</descriptor>
  158. </descriptors>
  159. <outputDirectory>target</outputDirectory>
  160. </configuration>
  161. <executions>
  162. <execution>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>single</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. <!-- 'https://github.com/spotify/docker-maven-plugin' -->
  171. <plugin>
  172. <groupId>com.spotify</groupId>
  173. <artifactId>docker-maven-plugin</artifactId>
  174. <version>1.2.2</version>
  175. <configuration>
  176. <imageName>${project.artifactId}:${project.version}-${maven.build.timestamp}</imageName>
  177. <dockerDirectory>${project.basedir}</dockerDirectory>
  178. <dockerHost>${docker.build.url}</dockerHost>
  179. </configuration>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. <repositories>
  184. <repository>
  185. <id>public</id>
  186. <name>aliyun nexus</name>
  187. <url>https://maven.aliyun.com/repository/public/</url>
  188. </repository>
  189. <repository>
  190. <id>spring-releases</id>
  191. <url>https://repo.spring.io/libs-release</url>
  192. </repository>
  193. </repositories>
  194. <pluginRepositories>
  195. <pluginRepository>
  196. <id>public</id>
  197. <name>aliyun nexus</name>
  198. <url>https://maven.aliyun.com/repository/public/</url>
  199. </pluginRepository>
  200. <pluginRepository>
  201. <id>spring-releases</id>
  202. <url>https://repo.spring.io/libs-release</url>
  203. </pluginRepository>
  204. </pluginRepositories>
  205. </project>