pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>com.zd</groupId>
  7. <artifactId>zd-modules</artifactId>
  8. <version>3.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>zd-modules-job</artifactId>
  12. <description>
  13. zd-modules-job定时任务
  14. </description>
  15. <dependencies>
  16. <!-- SpringCloud Alibaba Nacos -->
  17. <dependency>
  18. <groupId>com.alibaba.cloud</groupId>
  19. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  20. </dependency>
  21. <!-- SpringCloud Alibaba Nacos Config -->
  22. <dependency>
  23. <groupId>com.alibaba.cloud</groupId>
  24. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  25. </dependency>
  26. <!-- SpringCloud Alibaba Sentinel -->
  27. <dependency>
  28. <groupId>com.alibaba.cloud</groupId>
  29. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  30. </dependency>
  31. <!-- SpringBoot Actuator -->
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-actuator</artifactId>
  35. </dependency>
  36. <!-- Swagger UI -->
  37. <dependency>
  38. <groupId>io.springfox</groupId>
  39. <artifactId>springfox-swagger-ui</artifactId>
  40. <version>${swagger.fox.version}</version>
  41. </dependency>
  42. <!-- Quartz -->
  43. <dependency>
  44. <groupId>org.quartz-scheduler</groupId>
  45. <artifactId>quartz</artifactId>
  46. <exclusions>
  47. <exclusion>
  48. <groupId>com.mchange</groupId>
  49. <artifactId>c3p0</artifactId>
  50. </exclusion>
  51. </exclusions>
  52. </dependency>
  53. <!-- Mysql Connector -->
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. </dependency>
  58. <!-- zd Common Log -->
  59. <dependency>
  60. <groupId>com.zd</groupId>
  61. <artifactId>zd-common-log</artifactId>
  62. </dependency>
  63. <!-- zd Common Swagger -->
  64. <dependency>
  65. <groupId>com.zd</groupId>
  66. <artifactId>zd-common-swagger</artifactId>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <finalName>${project.artifactId}</finalName>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <goals>
  78. <goal>repackage</goal>
  79. </goals>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <!-- 打包时跳过test插件,不运行test测试用例 -->
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-surefire-plugin</artifactId>
  87. <version>${maven-surefire-plugin.version}</version>
  88. <configuration>
  89. <skipTests>true</skipTests>
  90. </configuration>
  91. </plugin>
  92. <!-- docker的maven插件 -->
  93. <!-- <plugin>-->
  94. <!-- <groupId>io.fabric8</groupId>-->
  95. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  96. <!-- <version>${docker.maven.verion}</version>-->
  97. <!-- <executions>-->
  98. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  99. <!-- <execution>-->
  100. <!-- <id>default</id>-->
  101. <!-- <phase>package</phase>-->
  102. <!-- <goals>-->
  103. <!-- <goal>remove</goal>-->
  104. <!-- <goal>build</goal>-->
  105. <!-- <goal>push</goal>-->
  106. <!-- </goals>-->
  107. <!-- </execution>-->
  108. <!-- </executions>-->
  109. <!-- <configuration>-->
  110. <!-- &lt;!&ndash; docker主机 &ndash;&gt;-->
  111. <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
  112. <!-- <authConfig>-->
  113. <!-- &lt;!&ndash; registry服务的认证&ndash;&gt;-->
  114. <!-- <username>${docker.registry.username}</username>-->
  115. <!-- <password>${docker.registry.password}</password>-->
  116. <!-- </authConfig>-->
  117. <!-- <images>-->
  118. <!-- <image>-->
  119. <!-- &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
  120. <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
  121. <!-- &lt;!&ndash; 仓库地址 &ndash;&gt;-->
  122. <!-- <registry>${docker.registry}</registry>-->
  123. <!-- <build>-->
  124. <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
  125. <!-- <tags>-->
  126. <!-- <tag>${project.version}</tag>-->
  127. <!-- </tags>-->
  128. <!-- </build>-->
  129. <!-- </image>-->
  130. <!-- </images>-->
  131. <!-- <buildArgs>-->
  132. <!-- &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
  133. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  134. <!-- </buildArgs>-->
  135. <!-- </configuration>-->
  136. <!-- </plugin>-->
  137. </plugins>
  138. </build>
  139. </project>