pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <!-- 测试 -->
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-test</artifactId>
  35. <scope>test</scope>
  36. </dependency>
  37. <!-- 定时任务 -->
  38. <dependency>
  39. <groupId>org.quartz-scheduler</groupId>
  40. <artifactId>quartz</artifactId>
  41. <exclusions>
  42. <exclusion>
  43. <groupId>com.mchange</groupId>
  44. <artifactId>c3p0</artifactId>
  45. </exclusion>
  46. </exclusions>
  47. </dependency>
  48. <!-- Redis 支持(接收 fs-admin 发送的定时任务变更消息) -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-data-redis</artifactId>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <version>3.11.0</version>
  60. <configuration>
  61. <source>${java.version}</source>
  62. <target>${java.version}</target>
  63. <encoding>${project.build.sourceEncoding}</encoding>
  64. <annotationProcessorPaths>
  65. <path>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <version>${lombok.version}</version>
  69. </path>
  70. <path>
  71. <groupId>org.mapstruct</groupId>
  72. <artifactId>mapstruct-processor</artifactId>
  73. <version>${org.mapstruct.version}</version>
  74. </path>
  75. <path>
  76. <groupId>org.projectlombok</groupId>
  77. <artifactId>lombok-mapstruct-binding</artifactId>
  78. <version>0.2.0</version>
  79. </path>
  80. </annotationProcessorPaths>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-maven-plugin</artifactId>
  86. <version>2.7.18</version>
  87. <configuration>
  88. <mainClass>com.fs.FsTaskApplication</mainClass>
  89. <fork>true</fork>
  90. <excludes>
  91. <exclude>
  92. <groupId>org.apache.tomcat</groupId>
  93. <artifactId>annotations-api</artifactId>
  94. </exclude>
  95. </excludes>
  96. <classifier>exec</classifier>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <goals>
  101. <goal>repackage</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-war-plugin</artifactId>
  109. <version>3.1.0</version>
  110. <configuration>
  111. <failOnMissingWebXml>false</failOnMissingWebXml>
  112. <warName>${project.artifactId}</warName>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. <finalName>${project.artifactId}</finalName>
  117. </build>
  118. </project>