pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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-file</artifactId>
  12. <description>
  13. zd-modules-file文件服务
  14. </description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-data-redis</artifactId>
  19. </dependency>
  20. <!-- SpringCloud Alibaba Nacos -->
  21. <dependency>
  22. <groupId>com.alibaba.cloud</groupId>
  23. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  24. </dependency>
  25. <!-- SpringCloud Alibaba Nacos Config -->
  26. <dependency>
  27. <groupId>com.alibaba.cloud</groupId>
  28. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  29. </dependency>
  30. <!-- SpringCloud Alibaba Sentinel -->
  31. <dependency>
  32. <groupId>com.alibaba.cloud</groupId>
  33. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  34. </dependency>
  35. <!-- SpringBoot Actuator -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-actuator</artifactId>
  39. </dependency>
  40. <!-- FastDFS -->
  41. <dependency>
  42. <groupId>com.github.tobato</groupId>
  43. <artifactId>fastdfs-client</artifactId>
  44. </dependency>
  45. <!-- Minio -->
  46. <dependency>
  47. <groupId>io.minio</groupId>
  48. <artifactId>minio</artifactId>
  49. <version>${minio.version}</version>
  50. </dependency>
  51. <!-- zd Api System -->
  52. <dependency>
  53. <groupId>com.zd</groupId>
  54. <artifactId>zd-api-system</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>net.sf.json-lib</groupId>
  58. <artifactId>json-lib</artifactId>
  59. <version>2.4</version>
  60. <classifier>jdk15</classifier>
  61. </dependency>
  62. <!-- zd Common Swagger -->
  63. <dependency>
  64. <groupId>com.zd</groupId>
  65. <artifactId>zd-common-swagger</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.google.code.gson</groupId>
  69. <artifactId>gson</artifactId>
  70. <version>2.8.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.json</groupId>
  74. <artifactId>json</artifactId>
  75. <version>20140107</version>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <finalName>${project.artifactId}</finalName>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <executions>
  85. <execution>
  86. <goals>
  87. <goal>repackage</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <!-- 打包时跳过test插件,不运行test测试用例 -->
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-surefire-plugin</artifactId>
  96. <version>${maven-surefire-plugin.version}</version>
  97. <configuration>
  98. <skipTests>true</skipTests>
  99. </configuration>
  100. </plugin>
  101. <!-- docker的maven插件 -->
  102. <!-- <plugin>-->
  103. <!-- <groupId>io.fabric8</groupId>-->
  104. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  105. <!-- <version>${docker.maven.verion}</version>-->
  106. <!-- <executions>-->
  107. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  108. <!-- <execution>-->
  109. <!-- <id>default</id>-->
  110. <!-- <phase>package</phase>-->
  111. <!-- <goals>-->
  112. <!-- <goal>remove</goal>-->
  113. <!-- <goal>build</goal>-->
  114. <!-- <goal>push</goal>-->
  115. <!-- </goals>-->
  116. <!-- </execution>-->
  117. <!-- </executions>-->
  118. <!-- <configuration>-->
  119. <!-- &lt;!&ndash; docker主机 &ndash;&gt;-->
  120. <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
  121. <!-- <authConfig>-->
  122. <!-- &lt;!&ndash; registry服务的认证&ndash;&gt;-->
  123. <!-- <username>${docker.registry.username}</username>-->
  124. <!-- <password>${docker.registry.password}</password>-->
  125. <!-- </authConfig>-->
  126. <!-- <images>-->
  127. <!-- <image>-->
  128. <!-- &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
  129. <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
  130. <!-- &lt;!&ndash; 仓库地址 &ndash;&gt;-->
  131. <!-- <registry>${docker.registry}</registry>-->
  132. <!-- <build>-->
  133. <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
  134. <!-- <tags>-->
  135. <!-- <tag>${project.version}</tag>-->
  136. <!-- </tags>-->
  137. <!-- </build>-->
  138. <!-- </image>-->
  139. <!-- </images>-->
  140. <!-- <buildArgs>-->
  141. <!-- &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
  142. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  143. <!-- </buildArgs>-->
  144. <!-- </configuration>-->
  145. <!-- </plugin>-->
  146. </plugins>
  147. </build>
  148. </project>