pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.xuxueli</groupId>
  6. <artifactId>xxl-job</artifactId>
  7. <version>2.4.0</version>
  8. </parent>
  9. <artifactId>xxl-job-admin</artifactId>
  10. <packaging>jar</packaging>
  11. <dependencyManagement>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-parent</artifactId>
  16. <version>${spring-boot.version}</version>
  17. <type>pom</type>
  18. <scope>import</scope>
  19. </dependency>
  20. </dependencies>
  21. </dependencyManagement>
  22. <dependencies>
  23. <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <!-- starter-test:junit + spring-test + mockito -->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-test</artifactId>
  32. <scope>test</scope>
  33. </dependency>
  34. <!-- freemarker-starter -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-freemarker</artifactId>
  38. </dependency>
  39. <!-- mail-starter -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-mail</artifactId>
  43. </dependency>
  44. <!-- starter-actuator -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-actuator</artifactId>
  48. </dependency>
  49. <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
  50. <dependency>
  51. <groupId>org.mybatis.spring.boot</groupId>
  52. <artifactId>mybatis-spring-boot-starter</artifactId>
  53. <version>${mybatis-spring-boot-starter.version}</version>
  54. </dependency>
  55. <!-- mysql -->
  56. <dependency>
  57. <groupId>com.mysql</groupId>
  58. <artifactId>mysql-connector-j</artifactId>
  59. <version>${mysql-connector-j.version}</version>
  60. </dependency>
  61. <!-- xxl-job-core -->
  62. <dependency>
  63. <groupId>com.xuxueli</groupId>
  64. <artifactId>xxl-job-core</artifactId>
  65. <version>${project.parent.version}</version>
  66. </dependency>
  67. </dependencies>
  68. <build>
  69. <plugins>
  70. <plugin>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-maven-plugin</artifactId>
  73. <version>${spring-boot.version}</version>
  74. <executions>
  75. <execution>
  76. <goals>
  77. <goal>repackage</goal>
  78. </goals>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <!-- docker -->
  83. <plugin>
  84. <groupId>com.spotify</groupId>
  85. <artifactId>docker-maven-plugin</artifactId>
  86. <version>0.4.13</version>
  87. <configuration>
  88. <!-- made of '[a-z0-9-_.]' -->
  89. <imageName>${project.artifactId}:${project.version}</imageName>
  90. <dockerDirectory>${project.basedir}</dockerDirectory>
  91. <resources>
  92. <resource>
  93. <targetPath>/</targetPath>
  94. <directory>${project.build.directory}</directory>
  95. <include>${project.build.finalName}.jar</include>
  96. </resource>
  97. </resources>
  98. </configuration>
  99. </plugin>
  100. </plugins>
  101. </build>
  102. </project>