pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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>ltapi-service</artifactId>
  7. <packaging>jar</packaging>
  8. <name>ltapi-service</name>
  9. <description>Lantone API 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>com.diagbot</groupId>
  18. <artifactId>common</artifactId>
  19. <version>0.0.1-SNAPSHOT</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.diagbot</groupId>
  23. <artifactId>common-biz-client</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  28. </dependency>
  29. <!-- 配置-->
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-starter-config</artifactId>
  33. </dependency>
  34. <!-- 开启web-->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. <exclusions>
  39. <exclusion>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-tomcat</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-undertow</artifactId>
  48. </dependency>
  49. <!-- 开启feign-->
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-openfeign</artifactId>
  53. </dependency>
  54. <!-- dashboard -->
  55. <!-- actuator-->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-actuator</artifactId>
  59. </dependency>
  60. <!--hystrix-dashboard-->
  61. <dependency>
  62. <groupId>org.springframework.cloud</groupId>
  63. <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
  64. </dependency>
  65. <!--hystrix -->
  66. <dependency>
  67. <groupId>org.springframework.cloud</groupId>
  68. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  69. </dependency>
  70. <!-- zipkin-->
  71. <!--<dependency>-->
  72. <!--<groupId>org.springframework.cloud</groupId>-->
  73. <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
  74. <!--</dependency>-->
  75. <!--swagger-->
  76. <dependency>
  77. <groupId>io.springfox</groupId>
  78. <artifactId>springfox-swagger2</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>io.springfox</groupId>
  82. <artifactId>springfox-swagger-ui</artifactId>
  83. </dependency>
  84. <!--security-->
  85. <dependency>
  86. <groupId>org.springframework.cloud</groupId>
  87. <artifactId>spring-cloud-starter-oauth2</artifactId>
  88. </dependency>
  89. <!-- mq -->
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-amqp</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.projectlombok</groupId>
  96. <artifactId>lombok</artifactId>
  97. <optional>true</optional>
  98. </dependency>
  99. <dependency>
  100. <groupId>net.logstash.logback</groupId>
  101. <artifactId>logstash-logback-encoder</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.cloud</groupId>
  105. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.cloud</groupId>
  109. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. </plugin>
  118. <!-- 添加docker-maven插件 -->
  119. <plugin>
  120. <groupId>com.spotify</groupId>
  121. <artifactId>docker-maven-plugin</artifactId>
  122. <configuration>
  123. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  124. <forceTags>true</forceTags>
  125. <!--镜像的FROM,使用压缩的小镜像-->
  126. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  127. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  128. <resources>
  129. <resource>
  130. <targetPath>/</targetPath>
  131. <directory>${project.build.directory}</directory>
  132. <include>${project.build.finalName}.jar</include>
  133. </resource>
  134. </resources>
  135. <serverId>docker-registry</serverId>
  136. <registryUrl>${registryUrl}</registryUrl>
  137. </configuration>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. </project>