pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.1</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. <!--
  57. <dependency>
  58. <groupId>mysql</groupId>
  59. <artifactId>mysql-connector-java</artifactId>
  60. <version>${mysql-connector-java.version}</version>
  61. </dependency>
  62. -->
  63. <!-- oracle -->
  64. <dependency>
  65. <groupId>com.oracle.ojdbc</groupId>
  66. <artifactId>ojdbc8</artifactId>
  67. <version>${jdbc.oracle.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.oracle.ojdbc</groupId>
  71. <artifactId>orai18n</artifactId>
  72. <version>${jdbc.oracle.version}</version>
  73. </dependency>
  74. <!-- <dependency>-->
  75. <!-- <groupId>myDriver</groupId>-->
  76. <!-- <artifactId>oraclejdbc</artifactId>-->
  77. <!-- <version>6</version>-->
  78. <!-- <scope>system</scope>-->
  79. <!-- <systemPath>${project.basedir}/src/main/lib/ojdbc6.jar</systemPath>-->
  80. <!-- </dependency>-->
  81. <!-- xxl-job-core -->
  82. <dependency>
  83. <groupId>com.xuxueli</groupId>
  84. <artifactId>xxl-job-core</artifactId>
  85. <version>${project.parent.version}</version>
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-maven-plugin</artifactId>
  93. <version>${spring-boot.version}</version>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>repackage</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <!-- docker -->
  103. <plugin>
  104. <groupId>com.spotify</groupId>
  105. <artifactId>docker-maven-plugin</artifactId>
  106. <version>0.4.13</version>
  107. <configuration>
  108. <!-- made of '[a-z0-9-_.]' -->
  109. <imageName>${project.artifactId}:${project.version}</imageName>
  110. <dockerDirectory>${project.basedir}</dockerDirectory>
  111. <resources>
  112. <resource>
  113. <targetPath>/</targetPath>
  114. <directory>${project.build.directory}</directory>
  115. <include>${project.build.finalName}.jar</include>
  116. </resource>
  117. </resources>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. </project>