pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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.crunii.microservice</groupId>
  6. <artifactId>service-xxl-job</artifactId>
  7. <version>${micro.version}</version>
  8. </parent>
  9. <artifactId>service-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>${boot.dependencies.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. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-jdbc</artifactId>
  64. </dependency>
  65. <!-- xxl-job-core -->
  66. <dependency>
  67. <groupId>com.crunii.microservice</groupId>
  68. <artifactId>xxl-job-core</artifactId>
  69. <version>${micro.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba.cloud</groupId>
  73. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  74. <exclusions>
  75. <exclusion>
  76. <groupId>com.alibaba.nacos</groupId>
  77. <artifactId>nacos-client</artifactId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.alibaba.nacos</groupId>
  83. <artifactId>nacos-client</artifactId>
  84. </dependency>
  85. <!-- 启用 nacos 服务发现 -->
  86. <!-- 版本对应2.7.9对应 2021.0.x https://spring.io/projects/spring-cloud#overview -->
  87. <!-- 2021.0.4.0 对应nacos client 版本 2.0.4 -->
  88. <!-- <dependency>-->
  89. <!-- <groupId>com.alibaba.cloud</groupId>-->
  90. <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
  91. <!-- <version>2021.0.4.0</version>-->
  92. <!-- </dependency>-->
  93. <!-- <dependency>-->
  94. <!-- <groupId>com.alibaba.cloud</groupId>-->
  95. <!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
  96. <!-- <version>2021.0.4.0</version>-->
  97. <!-- </dependency>-->
  98. <!-- 如果要启用配置中心,则引入 spring-cloud-starter-alibaba-nacos-config 和 spring-cloud-starter-bootstrap -->
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-maven-plugin</artifactId>
  105. <version>${boot.dependencies.version}</version>
  106. <executions>
  107. <execution>
  108. <goals>
  109. <goal>repackage</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <!-- docker -->
  115. <plugin>
  116. <groupId>com.spotify</groupId>
  117. <artifactId>docker-maven-plugin</artifactId>
  118. <version>0.4.13</version>
  119. <configuration>
  120. <!-- made of '[a-z0-9-_.]' -->
  121. <imageName>${project.artifactId}:${project.version}</imageName>
  122. <dockerDirectory>${project.basedir}</dockerDirectory>
  123. <resources>
  124. <resource>
  125. <targetPath>/</targetPath>
  126. <directory>${project.build.directory}</directory>
  127. <include>${project.build.finalName}.jar</include>
  128. </resource>
  129. </resources>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>