pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. <!-- 达梦数据库 -->
  76. <dependency>
  77. <groupId>DmJdbcDriver18</groupId>
  78. <artifactId>DmJdbcDriver18</artifactId>
  79. <version>1.0.0</version>
  80. <scope>system</scope>
  81. <systemPath>${pom.basedir}/src/main/resources/lib/DmJdbcDriver18.jar</systemPath>
  82. </dependency>
  83. <!-- xxl-job-core -->
  84. <dependency>
  85. <groupId>com.xuxueli</groupId>
  86. <artifactId>xxl-job-core</artifactId>
  87. <version>${xxljob.version}</version>
  88. </dependency>
  89. <!-- cloud context -->
  90. <dependency>
  91. <groupId>org.springframework.cloud</groupId>
  92. <artifactId>spring-cloud-context</artifactId>
  93. </dependency>
  94. <!-- bootstrap 配置加载 -->
  95. <dependency>
  96. <groupId>org.springframework.cloud</groupId>
  97. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  98. </dependency>
  99. <!-- SpringCloud 负载均衡 -->
  100. <dependency>
  101. <groupId>org.springframework.cloud</groupId>
  102. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  103. </dependency>
  104. <!-- https://blog.csdn.net/Tuine/article/details/122153363 -->
  105. <!-- caffeine缓存实现 -->
  106. <dependency>
  107. <groupId>com.github.ben-manes.caffeine</groupId>
  108. <artifactId>caffeine</artifactId>
  109. </dependency>
  110. <!-- nacos 配置中心客户端 -->
  111. <dependency>
  112. <groupId>com.alibaba.cloud</groupId>
  113. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  114. </dependency>
  115. <!-- nacos 注册中心客户端 -->
  116. <dependency>
  117. <groupId>com.alibaba.cloud</groupId>
  118. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  119. </dependency>
  120. <!-- 暴露各种指标 -->
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-actuator</artifactId>
  124. </dependency>
  125. <!-- admin -->
  126. <dependency>
  127. <groupId>de.codecentric</groupId>
  128. <artifactId>spring-boot-admin-starter-client</artifactId>
  129. </dependency>
  130. </dependencies>
  131. <build>
  132. <finalName>${project.artifactId}</finalName>
  133. <resources>
  134. <resource>
  135. <directory>src/main/resources</directory>
  136. <filtering>true</filtering>
  137. <excludes>
  138. <exclude>static/**/*.woff</exclude>
  139. <exclude>static/**/*.woff2</exclude>
  140. <exclude>static/**/*.ttf</exclude>
  141. </excludes>
  142. </resource>
  143. <resource>
  144. <directory>src/main/resources</directory>
  145. <filtering>false</filtering>
  146. <includes>
  147. <include>static/**/*.woff</include>
  148. <include>static/**/*.woff2</include>
  149. <include>static/**/*.ttf</include>
  150. </includes>
  151. </resource>
  152. </resources>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <goals>
  160. <goal>repackage</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. <configuration>
  165. <fork>true</fork>
  166. </configuration>
  167. </plugin>
  168. <!-- docker -->
  169. <plugin>
  170. <groupId>com.spotify</groupId>
  171. <artifactId>docker-maven-plugin</artifactId>
  172. <version>0.4.13</version>
  173. <configuration>
  174. <!-- made of '[a-z0-9-_.]' -->
  175. <imageName>${project.artifactId}:${project.version}</imageName>
  176. <dockerDirectory>${project.basedir}</dockerDirectory>
  177. <resources>
  178. <resource>
  179. <targetPath>/</targetPath>
  180. <directory>${project.build.directory}</directory>
  181. <include>${project.build.finalName}.jar</include>
  182. </resource>
  183. </resources>
  184. </configuration>
  185. </plugin>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-resources-plugin</artifactId>
  189. <version>2.6</version>
  190. </plugin>
  191. </plugins>
  192. </build>
  193. </project>