1
0

pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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-executor-samples</artifactId>
  9. <version>2.0.1</version>
  10. </parent>
  11. <artifactId>xxl-job-executor-sample-springboot</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>Example executor project for spring boot.</description>
  15. <url>http://www.xuxueli.com/</url>
  16. <properties>
  17. </properties>
  18. <dependencyManagement>
  19. <dependencies>
  20. <dependency>
  21. <!-- Import dependency management from Spring Boot (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-parent</artifactId>
  24. <version>${spring-boot.version}</version>
  25. <type>pom</type>
  26. <scope>import</scope>
  27. </dependency>
  28. <!-- jetty -->
  29. <dependency>
  30. <groupId>org.eclipse.jetty</groupId>
  31. <artifactId>jetty-server</artifactId>
  32. <version>${jetty-server.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.eclipse.jetty</groupId>
  36. <artifactId>jetty-util</artifactId>
  37. <version>${jetty-server.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.eclipse.jetty</groupId>
  41. <artifactId>jetty-http</artifactId>
  42. <version>${jetty-server.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.eclipse.jetty</groupId>
  46. <artifactId>jetty-io</artifactId>
  47. <version>${jetty-server.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.eclipse.jetty</groupId>
  51. <artifactId>jetty-client</artifactId>
  52. <version>${jetty-server.version}</version>
  53. </dependency>
  54. </dependencies>
  55. </dependencyManagement>
  56. <dependencies>
  57. <!-- spring-boot-starter-web (spring-webmvc + tomcat) -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-web</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <!-- xxl-job-core -->
  68. <dependency>
  69. <groupId>com.xuxueli</groupId>
  70. <artifactId>xxl-job-core</artifactId>
  71. <version>${project.parent.version}</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
  77. <plugin>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-maven-plugin</artifactId>
  80. <version>${spring-boot.version}</version>
  81. <executions>
  82. <execution>
  83. <goals>
  84. <goal>repackage</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>