pom.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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>1.7.2</version>
  10. </parent>
  11. <artifactId>xxl-job-executor-springboot-example</artifactId>
  12. <packaging>jar</packaging>
  13. <name>xxl-job-executor-springboot-example</name>
  14. <description>Example executor project for spring boot</description>
  15. <properties>
  16. <xxl-job.version>1.7.2</xxl-job.version>
  17. <spring-boot.version>1.3.8.RELEASE</spring-boot.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.7</java.version>
  21. </properties>
  22. <dependencyManagement>
  23. <dependencies>
  24. <dependency>
  25. <!-- Import dependency management from Spring Boot (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-parent</artifactId>
  28. <version>${spring-boot.version}</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. </dependencies>
  33. </dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter</artifactId>
  38. </dependency>
  39. <!-- spring-boot-starter-web (提供了对web的支持,包含了spring webmvc和tomcat等web开发的特性) -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-test</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <!-- c3p0 -->
  50. <dependency>
  51. <groupId>com.mchange</groupId>
  52. <artifactId>c3p0</artifactId>
  53. <version>0.9.5.2</version>
  54. </dependency>
  55. <!-- mysql-connector -->
  56. <dependency>
  57. <groupId>mysql</groupId>
  58. <artifactId>mysql-connector-java</artifactId>
  59. <version>5.1.29</version>
  60. </dependency>
  61. <!-- xxl-job-core -->
  62. <dependency>
  63. <groupId>com.xuxueli</groupId>
  64. <artifactId>xxl-job-core</artifactId>
  65. <version>${xxl-job.version}</version>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <plugins>
  70. <!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
  71. <plugin>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-maven-plugin</artifactId>
  74. <executions>
  75. <execution>
  76. <goals>
  77. <goal>repackage</goal>
  78. </goals>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. </plugins>
  83. </build>
  84. </project>