pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.diagbot</groupId>
  7. <artifactId>config-server</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>config-server</name>
  11. <description>Config Server for Spring Boot</description>
  12. <parent>
  13. <groupId>com.diagbot</groupId>
  14. <artifactId>diagbotcloud</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. </parent>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-tomcat</artifactId>
  25. </exclusion>
  26. </exclusions>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-undertow</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.cloud</groupId>
  34. <artifactId>spring-cloud-config-server</artifactId>
  35. </dependency>
  36. <!-- actuator-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <!--<dependency>-->
  42. <!--<groupId>org.springframework.cloud</groupId>-->
  43. <!--<artifactId>spring-cloud-starter-bus-amqp</artifactId>-->
  44. <!--</dependency>-->
  45. <dependency>
  46. <groupId>org.springframework.cloud</groupId>
  47. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>net.logstash.logback</groupId>
  51. <artifactId>logstash-logback-encoder</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.retry</groupId>
  55. <artifactId>spring-retry</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-aop</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.jolokia</groupId>
  63. <artifactId>jolokia-core</artifactId>
  64. </dependency>
  65. </dependencies>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-maven-plugin</artifactId>
  71. </plugin>
  72. <!-- 添加docker-maven插件 -->
  73. <plugin>
  74. <groupId>com.spotify</groupId>
  75. <artifactId>docker-maven-plugin</artifactId>
  76. <configuration>
  77. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  78. <forceTags>true</forceTags>
  79. <!--镜像的FROM,使用压缩的小镜像-->
  80. <baseImage>frolvlad/alpine-oraclejdk8:slim</baseImage>
  81. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  82. <resources>
  83. <resource>
  84. <targetPath>/</targetPath>
  85. <directory>${project.build.directory}</directory>
  86. <include>${project.build.finalName}.jar</include>
  87. </resource>
  88. </resources>
  89. </configuration>
  90. </plugin>
  91. </plugins>
  92. </build>
  93. </project>