pom.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.ym</groupId>
  8. <artifactId>mec-gateway</artifactId>
  9. <version>1.0</version>
  10. </parent>
  11. <artifactId>mec-gateway-web</artifactId>
  12. <name>mec-gateway-web</name>
  13. <url>http://maven.apache.org</url>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <!--api网关 -->
  19. <!-- <dependency>
  20. <groupId>org.springframework.cloud</groupId>
  21. <artifactId>spring-cloud-starter-gateway</artifactId>
  22. </dependency> -->
  23. <!--redis限流 -->
  24. <!-- <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  27. </dependency> -->
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.cloud</groupId>
  34. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  35. </dependency>
  36. <!-- swagger-spring-boot -->
  37. <dependency>
  38. <groupId>com.spring4all</groupId>
  39. <artifactId>swagger-spring-boot-starter</artifactId>
  40. <version>1.9.0.RELEASE</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>de.codecentric</groupId>
  44. <artifactId>spring-boot-admin-starter-client</artifactId>
  45. <version>2.1.6</version>
  46. </dependency>
  47. </dependencies>
  48. <build>
  49. <plugins>
  50. <!--docker镜像build插件 -->
  51. <plugin>
  52. <groupId>com.spotify</groupId>
  53. <artifactId>docker-maven-plugin</artifactId>
  54. <version>1.0.0</version>
  55. <configuration>
  56. <!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
  57. <imageName>cike/${project.artifactId}</imageName>
  58. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  59. <rm>true</rm>
  60. <resources>
  61. <resource>
  62. <targetPath>/</targetPath>
  63. <directory>${project.build.directory}</directory>
  64. <include>${project.build.finalName}.jar</include>
  65. </resource>
  66. </resources>
  67. </configuration>
  68. </plugin>
  69. </plugins>
  70. </build>
  71. </project>