pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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>com.xuxueli</groupId>
  8. <artifactId>xxl-job</artifactId>
  9. <version>2.3.0-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>xxl-job-executor-springboot</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>Example executor project for spring boot.</description>
  15. <url>https://www.xuxueli.com/</url>
  16. <properties>
  17. <mybatis-plus.version>3.1.2</mybatis-plus.version>
  18. <druid.version>1.1.10</druid.version>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <dependency>
  23. <!-- Import dependency management from Spring Boot (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-parent</artifactId>
  26. <version>${spring-boot.version}</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. </dependencies>
  31. </dependencyManagement>
  32. <dependencies>
  33. <!-- spring-boot-starter-web (spring-webmvc + tomcat) -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <!--mysql-->
  39. <dependency>
  40. <groupId>mysql</groupId>
  41. <artifactId>mysql-connector-java</artifactId>
  42. <version>5.1.47</version>
  43. <scope>runtime</scope>
  44. </dependency>
  45. <!-- mybatis-plus -->
  46. <dependency>
  47. <groupId>com.baomidou</groupId>
  48. <artifactId>mybatis-plus-boot-starter</artifactId>
  49. <version>${mybatis-plus.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.baomidou</groupId>
  53. <artifactId>mybatis-plus-extension</artifactId>
  54. <version>${mybatis-plus.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.baomidou</groupId>
  58. <artifactId>mybatis-plus-annotation</artifactId>
  59. <version>${mybatis-plus.version}</version>
  60. </dependency>
  61. <!-- druid -->
  62. <dependency>
  63. <groupId>com.alibaba</groupId>
  64. <artifactId>druid-spring-boot-starter</artifactId>
  65. <version>${druid.version}</version>
  66. </dependency>
  67. <!-- 动态数据源 -->
  68. <dependency>
  69. <groupId>com.baomidou</groupId>
  70. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  71. <version>2.5.4</version>
  72. </dependency>
  73. <!-- fastjson-->
  74. <dependency>
  75. <groupId>com.alibaba</groupId>
  76. <artifactId>fastjson</artifactId>
  77. <version>1.2.56</version>
  78. </dependency>
  79. <!-- Lombok -->
  80. <dependency>
  81. <groupId>org.projectlombok</groupId>
  82. <artifactId>lombok</artifactId>
  83. </dependency>
  84. <!-- httpclient-->
  85. <dependency>
  86. <groupId>org.apache.httpcomponents</groupId>
  87. <artifactId>httpclient</artifactId>
  88. <version>4.5.9</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.httpcomponents</groupId>
  92. <artifactId>httpcore</artifactId>
  93. <version>4.4</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.squareup.retrofit2</groupId>
  97. <artifactId>retrofit</artifactId>
  98. <version>2.6.0</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-mail</artifactId>
  103. </dependency>
  104. <!-- xxl-job-core -->
  105. <dependency>
  106. <groupId>com.xuxueli</groupId>
  107. <artifactId>xxl-job-core</artifactId>
  108. <version>${project.parent.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.tencentcloudapi</groupId>
  112. <artifactId>tencentcloud-sdk-java</artifactId>
  113. <version>3.1.62</version><!-- 注:这里只是示例版本号,请获取并替换为 最新的版本号 -->
  114. </dependency>
  115. <dependency>
  116. <groupId>com.qcloud</groupId>
  117. <artifactId>cos_api</artifactId>
  118. <version>5.6.25</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>dom4j</groupId>
  122. <artifactId>dom4j</artifactId>
  123. <version>1.6.1</version>
  124. </dependency>
  125. </dependencies>
  126. <build>
  127. <resources>
  128. <resource>
  129. <!-- xml放在java目录下-->
  130. <directory>src/main/java</directory>
  131. <includes>
  132. <include>**/*.xml</include>
  133. <include>**/*.properties</include>
  134. </includes>
  135. </resource>
  136. <!--指定资源的位置(xml放在resources下,可以不用指定)-->
  137. <resource>
  138. <directory>src/main/resources</directory>
  139. </resource>
  140. </resources>
  141. <plugins>
  142. <!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. <version>${spring-boot.version}</version>
  147. <executions>
  148. <execution>
  149. <goals>
  150. <goal>repackage</goal>
  151. </goals>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. <profiles>
  158. <profile>
  159. <id>dev</id>
  160. <properties>
  161. <!-- 环境标识,需要与配置文件的名称相对应 -->
  162. <activatedProperties>dev</activatedProperties>
  163. </properties>
  164. <activation>
  165. <!-- 默认环境 -->
  166. <activeByDefault>true</activeByDefault>
  167. </activation>
  168. </profile>
  169. <profile>
  170. <id>test</id>
  171. <properties>
  172. <activatedProperties>test</activatedProperties>
  173. </properties>
  174. </profile>
  175. <profile>
  176. <id>prod</id>
  177. <properties>
  178. <activatedProperties>prod</activatedProperties>
  179. </properties>
  180. </profile>
  181. </profiles>
  182. </project>