pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.lantone</groupId>
  7. <artifactId>emrais</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>message-service</artifactId>
  11. <name>message-service</name>
  12. <packaging>jar</packaging>
  13. <description>讯息中心</description>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.lantone</groupId>
  17. <artifactId>common</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework.cloud</groupId>
  21. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-starter-config</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-amqp</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.integration</groupId>
  33. <artifactId>spring-integration-mqtt</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-openfeign</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.github.openfeign</groupId>
  45. <artifactId>feign-okhttp</artifactId>
  46. </dependency>
  47. </dependencies>
  48. <!-- <build>-->
  49. <!-- <plugins>-->
  50. <!-- <plugin>-->
  51. <!-- <groupId>org.springframework.boot</groupId>-->
  52. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  53. <!-- </plugin>-->
  54. <!-- <plugin>-->
  55. <!-- <groupId>com.spotify</groupId>-->
  56. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  57. <!-- </plugin>-->
  58. <!-- </plugins>-->
  59. <!-- </build>-->
  60. <!-- <build>-->
  61. <!-- <plugins>-->
  62. <!-- <plugin>-->
  63. <!-- <groupId>org.springframework.boot</groupId>-->
  64. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  65. <!-- </plugin>-->
  66. <!-- </plugins>-->
  67. <!-- <resources>-->
  68. <!-- <resource>-->
  69. <!-- <directory>src/main/java</directory>-->
  70. <!-- <includes>-->
  71. <!-- <include>**/*.properties</include>-->
  72. <!-- <include>**/*.xml</include>-->
  73. <!-- <include>**/*.json</include>-->
  74. <!-- </includes>-->
  75. <!-- <filtering>false</filtering>-->
  76. <!-- </resource>-->
  77. <!-- <resource>-->
  78. <!-- <directory>src/main/resources</directory>-->
  79. <!-- <includes>-->
  80. <!-- <include>**/*.*</include>-->
  81. <!-- </includes>-->
  82. <!-- </resource>-->
  83. <!-- </resources>-->
  84. <!-- <finalName>message-service</finalName>-->
  85. <!-- </build>-->
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-maven-plugin</artifactId>
  91. </plugin>
  92. <!-- 添加docker-maven插件 -->
  93. <plugin>
  94. <groupId>com.spotify</groupId>
  95. <artifactId>docker-maven-plugin</artifactId>
  96. <version>1.1.1</version>
  97. <configuration>
  98. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  99. <forceTags>true</forceTags>
  100. <!--镜像的FROM,使用压缩的小镜像-->
  101. <baseImage>frolvlad/alpine-oraclejre8:slim</baseImage>
  102. <entryPoint>["java", "-jar", "-Xms256m", "-Xmx1024m", "-Duser.timezone=GMT+8", "/${project.build.finalName}.jar"]</entryPoint>
  103. <resources>
  104. <resource>
  105. <targetPath>/</targetPath>
  106. <directory>${project.build.directory}</directory>
  107. <include>${project.build.finalName}.jar</include>
  108. </resource>
  109. </resources>
  110. <serverId>docker-registry</serverId>
  111. <registryUrl>${registryUrl}</registryUrl>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. </build>
  116. </project>