pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. <parent>
  6. <artifactId>fs</artifactId>
  7. <groupId>com.fs</groupId>
  8. <version>1.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>fs-task</artifactId>
  12. <description>
  13. 统一定时任务模块(所有 @Component Task Bean + 手动触发接口 + Bean 注册表)
  14. </description>
  15. <dependencies>
  16. <!-- 保留对 framework 的依赖(会传递 fs-service / web / druid 等) -->
  17. <dependency>
  18. <groupId>com.fs</groupId>
  19. <artifactId>fs-framework</artifactId>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>javax.annotation</groupId>
  23. <artifactId>annotations-api</artifactId>
  24. </exclusion>
  25. <exclusion>
  26. <groupId>org.apache.tomcat</groupId>
  27. <artifactId>annotations-api</artifactId>
  28. </exclusion>
  29. </exclusions>
  30. </dependency>
  31. <!-- spring-boot-devtools -->
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-devtools</artifactId>
  35. <optional>true</optional>
  36. </dependency>
  37. <!-- swagger2 -->
  38. <dependency>
  39. <groupId>io.springfox</groupId>
  40. <artifactId>springfox-swagger2</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>io.springfox</groupId>
  44. <artifactId>springfox-swagger-ui</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.github.xiaoymin</groupId>
  48. <artifactId>swagger-bootstrap-ui</artifactId>
  49. <version>1.9.3</version>
  50. </dependency>
  51. <!-- Mysql驱动包 -->
  52. <dependency>
  53. <groupId>mysql</groupId>
  54. <artifactId>mysql-connector-java</artifactId>
  55. </dependency>
  56. <!-- clickhouse -->
  57. <dependency>
  58. <groupId>com.clickhouse</groupId>
  59. <artifactId>clickhouse-jdbc</artifactId>
  60. <version>0.4.6</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.retry</groupId>
  64. <artifactId>spring-retry</artifactId>
  65. <version>1.3.1</version>
  66. </dependency>
  67. <!-- 验证码 -->
  68. <dependency>
  69. <groupId>com.github.penggle</groupId>
  70. <artifactId>kaptcha</artifactId>
  71. <exclusions>
  72. <exclusion>
  73. <artifactId>javax.servlet-api</artifactId>
  74. <groupId>javax.servlet</groupId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>org.apache.tomcat</groupId>
  78. <artifactId>annotations-api</artifactId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <!-- 获取系统信息 -->
  83. <dependency>
  84. <groupId>com.github.oshi</groupId>
  85. <artifactId>oshi-core</artifactId>
  86. </dependency>
  87. <!-- lombok -->
  88. <dependency>
  89. <groupId>org.projectlombok</groupId>
  90. <artifactId>lombok</artifactId>
  91. <version>${lombok.version}</version>
  92. </dependency>
  93. <!-- 测试 -->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-test</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-compiler-plugin</artifactId>
  105. <version>3.11.0</version>
  106. <configuration>
  107. <source>${java.version}</source>
  108. <target>${java.version}</target>
  109. <encoding>${project.build.sourceEncoding}</encoding>
  110. <annotationProcessorPaths>
  111. <path>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. <version>${lombok.version}</version>
  115. </path>
  116. <path>
  117. <groupId>org.mapstruct</groupId>
  118. <artifactId>mapstruct-processor</artifactId>
  119. <version>${org.mapstruct.version}</version>
  120. </path>
  121. <path>
  122. <groupId>org.projectlombok</groupId>
  123. <artifactId>lombok-mapstruct-binding</artifactId>
  124. <version>0.2.0</version>
  125. </path>
  126. </annotationProcessorPaths>
  127. </configuration>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-maven-plugin</artifactId>
  132. <version>2.7.18</version>
  133. <configuration>
  134. <mainClass>com.fs.FsTaskApplication</mainClass>
  135. <fork>true</fork>
  136. <excludes>
  137. <exclude>
  138. <groupId>org.apache.tomcat</groupId>
  139. <artifactId>annotations-api</artifactId>
  140. </exclude>
  141. </excludes>
  142. <classifier>exec</classifier>
  143. </configuration>
  144. <executions>
  145. <execution>
  146. <goals>
  147. <goal>repackage</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-war-plugin</artifactId>
  155. <version>3.1.0</version>
  156. <configuration>
  157. <failOnMissingWebXml>false</failOnMissingWebXml>
  158. <warName>${project.artifactId}</warName>
  159. </configuration>
  160. </plugin>
  161. </plugins>
  162. <finalName>${project.artifactId}</finalName>
  163. </build>
  164. </project>