pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-config-server</artifactId>
  25. </dependency>
  26. <!-- actuator-->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-actuator</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.cloud</groupId>
  33. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>net.logstash.logback</groupId>
  41. <artifactId>logstash-logback-encoder</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.retry</groupId>
  45. <artifactId>spring-retry</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-aop</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.jolokia</groupId>
  53. <artifactId>jolokia-core</artifactId>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-maven-plugin</artifactId>
  61. </plugin>
  62. <!-- 添加docker-maven插件 -->
  63. <plugin>
  64. <groupId>com.spotify</groupId>
  65. <artifactId>docker-maven-plugin</artifactId>
  66. <configuration>
  67. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  68. <forceTags>true</forceTags>
  69. <!--镜像的FROM,使用java官方镜像-->
  70. <baseImage>java:8u111-jdk</baseImage>
  71. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  72. <resources>
  73. <resource>
  74. <targetPath>/</targetPath>
  75. <directory>${project.build.directory}</directory>
  76. <include>${project.build.finalName}.jar</include>
  77. </resource>
  78. </resources>
  79. </configuration>
  80. </plugin>
  81. </plugins>
  82. </build>
  83. </project>