pom.xml 7.2 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. <parent>
  7. <groupId>vip.xiaonuo</groupId>
  8. <artifactId>snowy-server</artifactId>
  9. <version>2.0.0</version>
  10. </parent>
  11. <artifactId>snowy-xxl-job-app</artifactId>
  12. <description>XxlJob分布式任务调度应用启动组件</description>
  13. <packaging>jar</packaging>
  14. <dependencies>
  15. <!-- snowy-common -->
  16. <dependency>
  17. <groupId>vip.xiaonuo</groupId>
  18. <artifactId>snowy-common</artifactId>
  19. <version>${project.parent.version}</version>
  20. <scope>compile</scope>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>*</groupId>
  24. <artifactId>*</artifactId>
  25. </exclusion>
  26. </exclusions>
  27. </dependency>
  28. <!--lombok-->
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. </dependency>
  33. <!--hutool-->
  34. <dependency>
  35. <groupId>cn.hutool</groupId>
  36. <artifactId>hutool-all</artifactId>
  37. </dependency>
  38. <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-web</artifactId>
  42. </dependency>
  43. <!-- starter-test:junit + spring-test + mockito -->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-test</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <!-- freemarker-starter -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-freemarker</artifactId>
  53. </dependency>
  54. <!-- mail-starter -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-mail</artifactId>
  58. </dependency>
  59. <!-- starter-actuator -->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-actuator</artifactId>
  63. </dependency>
  64. <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
  65. <dependency>
  66. <groupId>org.mybatis.spring.boot</groupId>
  67. <artifactId>mybatis-spring-boot-starter</artifactId>
  68. <version>${mybatis-spring-boot-starter.version}</version>
  69. </dependency>
  70. <!-- mysql -->
  71. <dependency>
  72. <groupId>mysql</groupId>
  73. <artifactId>mysql-connector-java</artifactId>
  74. </dependency>
  75. <!-- xxl-job-core -->
  76. <dependency>
  77. <groupId>com.xuxueli</groupId>
  78. <artifactId>xxl-job-core</artifactId>
  79. <version>${xxljob.version}</version>
  80. </dependency>
  81. <!-- cloud context -->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-context</artifactId>
  85. </dependency>
  86. <!-- bootstrap 配置加载 -->
  87. <dependency>
  88. <groupId>org.springframework.cloud</groupId>
  89. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  90. </dependency>
  91. <!-- SpringCloud 负载均衡 -->
  92. <dependency>
  93. <groupId>org.springframework.cloud</groupId>
  94. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  95. </dependency>
  96. <!-- https://blog.csdn.net/Tuine/article/details/122153363 -->
  97. <!-- caffeine缓存实现 -->
  98. <dependency>
  99. <groupId>com.github.ben-manes.caffeine</groupId>
  100. <artifactId>caffeine</artifactId>
  101. </dependency>
  102. <!-- nacos 配置中心客户端 -->
  103. <dependency>
  104. <groupId>com.alibaba.cloud</groupId>
  105. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  106. </dependency>
  107. <!-- nacos 注册中心客户端 -->
  108. <dependency>
  109. <groupId>com.alibaba.cloud</groupId>
  110. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  111. </dependency>
  112. <!-- 暴露各种指标 -->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-actuator</artifactId>
  116. </dependency>
  117. <!-- admin -->
  118. <dependency>
  119. <groupId>de.codecentric</groupId>
  120. <artifactId>spring-boot-admin-starter-client</artifactId>
  121. </dependency>
  122. </dependencies>
  123. <build>
  124. <finalName>${project.artifactId}</finalName>
  125. <resources>
  126. <resource>
  127. <directory>src/main/resources</directory>
  128. <filtering>true</filtering>
  129. <excludes>
  130. <exclude>static/**/*.woff</exclude>
  131. <exclude>static/**/*.woff2</exclude>
  132. <exclude>static/**/*.ttf</exclude>
  133. </excludes>
  134. </resource>
  135. <resource>
  136. <directory>src/main/resources</directory>
  137. <filtering>false</filtering>
  138. <includes>
  139. <include>static/**/*.woff</include>
  140. <include>static/**/*.woff2</include>
  141. <include>static/**/*.ttf</include>
  142. </includes>
  143. </resource>
  144. </resources>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. <executions>
  150. <execution>
  151. <goals>
  152. <goal>repackage</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. <configuration>
  157. <fork>true</fork>
  158. </configuration>
  159. </plugin>
  160. <!-- docker -->
  161. <plugin>
  162. <groupId>com.spotify</groupId>
  163. <artifactId>docker-maven-plugin</artifactId>
  164. <version>0.4.13</version>
  165. <configuration>
  166. <!-- made of '[a-z0-9-_.]' -->
  167. <imageName>${project.artifactId}:${project.version}</imageName>
  168. <dockerDirectory>${project.basedir}</dockerDirectory>
  169. <resources>
  170. <resource>
  171. <targetPath>/</targetPath>
  172. <directory>${project.build.directory}</directory>
  173. <include>${project.build.finalName}.jar</include>
  174. </resource>
  175. </resources>
  176. </configuration>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-resources-plugin</artifactId>
  181. <version>2.6</version>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </project>