pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. </dependencies>
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <version>3.11.0</version>
  55. <configuration>
  56. <source>${java.version}</source>
  57. <target>${java.version}</target>
  58. <encoding>${project.build.sourceEncoding}</encoding>
  59. <annotationProcessorPaths>
  60. <path>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <version>${lombok.version}</version>
  64. </path>
  65. <path>
  66. <groupId>org.mapstruct</groupId>
  67. <artifactId>mapstruct-processor</artifactId>
  68. <version>${org.mapstruct.version}</version>
  69. </path>
  70. <path>
  71. <groupId>org.projectlombok</groupId>
  72. <artifactId>lombok-mapstruct-binding</artifactId>
  73. <version>0.2.0</version>
  74. </path>
  75. </annotationProcessorPaths>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-maven-plugin</artifactId>
  81. <version>2.7.18</version>
  82. <configuration>
  83. <mainClass>com.fs.FsTaskApplication</mainClass>
  84. <fork>true</fork>
  85. <excludes>
  86. <exclude>
  87. <groupId>org.apache.tomcat</groupId>
  88. <artifactId>annotations-api</artifactId>
  89. </exclude>
  90. </excludes>
  91. <classifier>exec</classifier>
  92. </configuration>
  93. <executions>
  94. <execution>
  95. <goals>
  96. <goal>repackage</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-war-plugin</artifactId>
  104. <version>3.1.0</version>
  105. <configuration>
  106. <failOnMissingWebXml>false</failOnMissingWebXml>
  107. <warName>${project.artifactId}</warName>
  108. </configuration>
  109. </plugin>
  110. </plugins>
  111. <finalName>${project.artifactId}</finalName>
  112. </build>
  113. </project>