pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-qw-task</artifactId>
  12. <description>
  13. 企微定时任务模块(联系人同步/会话存档/SOP执行/标签同步)
  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.quartz-scheduler</groupId>
  34. <artifactId>quartz</artifactId>
  35. <exclusions>
  36. <exclusion>
  37. <groupId>com.mchange</groupId>
  38. <artifactId>c3p0</artifactId>
  39. </exclusion>
  40. </exclusions>
  41. </dependency>
  42. <!-- Redis 支持 -->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-data-redis</artifactId>
  46. </dependency>
  47. <!-- 测试 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-test</artifactId>
  51. <scope>test</scope>
  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. </annotationProcessorPaths>
  71. </configuration>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-maven-plugin</artifactId>
  76. <version>2.7.18</version>
  77. <configuration>
  78. <mainClass>com.fs.FsQwTaskApplication</mainClass>
  79. <fork>true</fork>
  80. <excludes>
  81. <exclude>
  82. <groupId>org.apache.tomcat</groupId>
  83. <artifactId>annotations-api</artifactId>
  84. </exclude>
  85. </excludes>
  86. <classifier>exec</classifier>
  87. </configuration>
  88. <executions>
  89. <execution>
  90. <goals>
  91. <goal>repackage</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-war-plugin</artifactId>
  99. <version>3.1.0</version>
  100. <configuration>
  101. <failOnMissingWebXml>false</failOnMissingWebXml>
  102. <warName>${project.artifactId}</warName>
  103. </configuration>
  104. </plugin>
  105. </plugins>
  106. <finalName>${project.artifactId}</finalName>
  107. </build>
  108. </project>