pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.3.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>mysql</groupId>
  58. <artifactId>mysql-connector-java</artifactId>
  59. <version>${mysql-connector-java.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. <dependency>
  68. <groupId>org.postgresql</groupId>
  69. <artifactId>postgresql</artifactId>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <version>${spring-boot.version}</version>
  78. <executions>
  79. <execution>
  80. <goals>
  81. <goal>repackage</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. <!-- docker -->
  87. <plugin>
  88. <groupId>com.spotify</groupId>
  89. <artifactId>docker-maven-plugin</artifactId>
  90. <version>0.4.13</version>
  91. <configuration>
  92. <!-- made of '[a-z0-9-_.]' -->
  93. <imageName>${project.artifactId}:${project.version}</imageName>
  94. <dockerDirectory>${project.basedir}</dockerDirectory>
  95. <resources>
  96. <resource>
  97. <targetPath>/</targetPath>
  98. <directory>${project.build.directory}</directory>
  99. <include>${project.build.finalName}.jar</include>
  100. </resource>
  101. </resources>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </project>