pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <artifactId>monitor-service</artifactId>
  7. <packaging>jar</packaging>
  8. <name>monitor-service</name>
  9. <description>Monitor Service for Spring Boot</description>
  10. <parent>
  11. <groupId>com.diagbot</groupId>
  12. <artifactId>diagbotcloud</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. </parent>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-web</artifactId>
  19. <exclusions>
  20. <exclusion>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-tomcat</artifactId>
  23. </exclusion>
  24. </exclusions>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-undertow</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-starter-config</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-netflix-turbine</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-actuator</artifactId>
  41. </dependency>
  42. <!--hystrix-dashboard-->
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
  46. </dependency>
  47. <!--hystrix -->
  48. <dependency>
  49. <groupId>org.springframework.cloud</groupId>
  50. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>net.logstash.logback</groupId>
  54. <artifactId>logstash-logback-encoder</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.cloud</groupId>
  58. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <plugins>
  63. <plugin>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-maven-plugin</artifactId>
  66. </plugin>
  67. <!-- 添加docker-maven插件 -->
  68. <plugin>
  69. <groupId>com.spotify</groupId>
  70. <artifactId>docker-maven-plugin</artifactId>
  71. <configuration>
  72. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  73. <forceTags>true</forceTags>
  74. <!--镜像的FROM,使用压缩的小镜像-->
  75. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  76. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  77. <resources>
  78. <resource>
  79. <targetPath>/</targetPath>
  80. <directory>${project.build.directory}</directory>
  81. <include>${project.build.finalName}.jar</include>
  82. </resource>
  83. </resources>
  84. <serverId>docker-registry</serverId>
  85. <registryUrl>${registryUrl}</registryUrl>
  86. </configuration>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>