pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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>diagbotcloud</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>eureka-server</module>
  12. <module>config-server</module>
  13. <module>gateway-service</module>
  14. <module>uaa-service</module>
  15. <module>user-service</module>
  16. <module>log-service</module>
  17. <module>common</module>
  18. <module>diagbotman-service</module>
  19. <module>feedback-service</module>
  20. <module>knowledge-service</module>
  21. <module>bi-service</module>
  22. <module>monitor-service</module>
  23. <module>admin-service</module>
  24. </modules>
  25. <parent>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-parent</artifactId>
  28. <version>2.0.4.RELEASE</version>
  29. <relativePath/>
  30. </parent>
  31. <properties>
  32. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  33. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  34. <java.version>1.8</java.version>
  35. <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
  36. <mybatis-plus-boot-starter.version>3.0-RC1</mybatis-plus-boot-starter.version>
  37. <mybatis-spring-boot.version>1.3.2</mybatis-spring-boot.version>
  38. <druid.version>1.1.9</druid.version>
  39. <swagger.version>2.9.2</swagger.version>
  40. <docker.image.prefix>192.168.2.236:5000/diagbotcloud</docker.image.prefix>
  41. </properties>
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.jolokia</groupId>
  50. <artifactId>jolokia-core</artifactId>
  51. </dependency>
  52. </dependencies>
  53. <dependencyManagement>
  54. <dependencies>
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-dependencies</artifactId>
  58. <version>${spring-cloud.version}</version>
  59. <type>pom</type>
  60. <scope>import</scope>
  61. </dependency>
  62. <!-- mybatis-plus begin -->
  63. <dependency>
  64. <groupId>com.baomidou</groupId>
  65. <artifactId>mybatis-plus-boot-starter</artifactId>
  66. <version>${mybatis-plus-boot-starter.version}</version>
  67. </dependency>
  68. <!-- mybatis-plus end -->
  69. <!-- 阿里巴巴druid数据库连接池 -->
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>druid-spring-boot-starter</artifactId>
  73. <version>${druid.version}</version>
  74. </dependency>
  75. <!--swagger-->
  76. <dependency>
  77. <groupId>io.springfox</groupId>
  78. <artifactId>springfox-swagger2</artifactId>
  79. <version>${swagger.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>io.springfox</groupId>
  83. <artifactId>springfox-swagger-ui</artifactId>
  84. <version>${swagger.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>de.codecentric</groupId>
  88. <artifactId>spring-boot-admin-starter-client</artifactId>
  89. <version>2.0.0</version>
  90. </dependency>
  91. <!-- springboot整合mybatis(核心就这一个) -->
  92. <!-- 注意顺序,这个一定要放在最下面 -->
  93. <dependency>
  94. <groupId>org.mybatis.spring.boot</groupId>
  95. <artifactId>mybatis-spring-boot-starter</artifactId>
  96. <version>${mybatis-spring-boot.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.spotify</groupId>
  100. <artifactId>docker-maven-plugin</artifactId>
  101. <version>1.1.1</version>
  102. </dependency>
  103. </dependencies>
  104. </dependencyManagement>
  105. <build>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. </plugin>
  111. <!-- 添加docker-maven插件 -->
  112. <plugin>
  113. <groupId>com.spotify</groupId>
  114. <artifactId>docker-maven-plugin</artifactId>
  115. <version>1.1.1</version>
  116. <configuration>
  117. <imageName>${docker.image.prefix}/${project.artifactId}:${project.version}</imageName>
  118. <pushImage>true</pushImage>
  119. <forceTags>true</forceTags>
  120. <!--镜像的FROM,使用java官方镜像-->
  121. <baseImage>java:8u111-jdk</baseImage>
  122. <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
  123. <resources>
  124. <resource>
  125. <targetPath>/</targetPath>
  126. <directory>${project.build.directory}</directory>
  127. <include>${project.build.finalName}.jar</include>
  128. </resource>
  129. </resources>
  130. <serverId>docker-registry</serverId>
  131. <registryUrl>http://192.168.2.236:5000/repository/diagbotcloud/</registryUrl>
  132. </configuration>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>