pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.fdkankan</groupId>
  6. <artifactId>xxl-job</artifactId>
  7. <version>2.4.0-SNAPSHOT</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. <dependency>
  21. <groupId>com.alibaba.cloud</groupId>
  22. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  23. <version>2021.0.4.0</version>
  24. <type>pom</type>
  25. <scope>import</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.cloud</groupId>
  29. <artifactId>spring-cloud-dependencies</artifactId>
  30. <version>2021.0.4</version>
  31. <type>pom</type>
  32. <scope>import</scope>
  33. </dependency>
  34. </dependencies>
  35. </dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>com.alibaba.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.alibaba.cloud</groupId>
  43. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  44. </dependency>
  45. <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-web</artifactId>
  49. </dependency>
  50. <!-- starter-test:junit + spring-test + mockito -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <!-- freemarker-starter -->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-freemarker</artifactId>
  60. </dependency>
  61. <!-- mail-starter -->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-mail</artifactId>
  65. </dependency>
  66. <!-- starter-actuator -->
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-actuator</artifactId>
  70. </dependency>
  71. <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
  72. <dependency>
  73. <groupId>org.mybatis.spring.boot</groupId>
  74. <artifactId>mybatis-spring-boot-starter</artifactId>
  75. <version>${mybatis-spring-boot-starter.version}</version>
  76. </dependency>
  77. <!-- mysql -->
  78. <dependency>
  79. <groupId>mysql</groupId>
  80. <artifactId>mysql-connector-java</artifactId>
  81. <version>${mysql-connector-java.version}</version>
  82. </dependency>
  83. <!-- xxl-job-core -->
  84. <dependency>
  85. <groupId>com.fdkankan</groupId>
  86. <artifactId>xxl-job-core</artifactId>
  87. <version>2.4.0-SNAPSHOT</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.cloud</groupId>
  91. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  92. <!-- <version></version>-->
  93. </dependency>
  94. <dependency>
  95. <groupId>com.github.ulisesbocchio</groupId>
  96. <artifactId>jasypt-spring-boot-starter</artifactId>
  97. <version>3.0.5</version>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <finalName>${artifactId}</finalName>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-maven-plugin</artifactId>
  106. <version>${spring-boot.version}</version>
  107. <executions>
  108. <execution>
  109. <goals>
  110. <goal>repackage</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <!-- docker -->
  116. <plugin>
  117. <groupId>com.spotify</groupId>
  118. <artifactId>docker-maven-plugin</artifactId>
  119. <version>0.4.13</version>
  120. <configuration>
  121. <!-- made of '[a-z0-9-_.]' -->
  122. <imageName>${project.artifactId}:${project.version}</imageName>
  123. <dockerDirectory>${project.basedir}</dockerDirectory>
  124. <resources>
  125. <resource>
  126. <targetPath>/</targetPath>
  127. <directory>${project.build.directory}</directory>
  128. <include>${project.build.finalName}.jar</include>
  129. </resource>
  130. </resources>
  131. </configuration>
  132. </plugin>
  133. </plugins>
  134. </build>
  135. </project>