pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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>cn.hhj</groupId>
  7. <artifactId>MicroCloud</artifactId>
  8. <version>0.0.1</version>
  9. <modules>
  10. <module>microcloud-api</module>
  11. <module>microcloud-provider-dept-8001</module>
  12. <module>microcloud-consumer</module>
  13. <module>microcloud-global-security</module>
  14. <module>microcloud-eureka-7001</module>
  15. <module>microcloud-eureka-7002</module>
  16. <module>microcloud-eureka-7003</module>
  17. <module>microcloud-provider-dept-8002</module>
  18. <module>microcloud-provider-dept-8003</module>
  19. <module>microcloud-consumer-feign</module>
  20. <module>microcloud-service</module>
  21. <module>microcloud-provider-dept-hystrix-8001</module>
  22. <module>microcloud-consumer-hystrix</module>
  23. <module>microcloud-consumer-hystrix-dashboard</module>
  24. <module>microcloud-zuul-gateway-9501</module>
  25. <module>microcloud-provider-company-8101</module>
  26. <module>microcloud-provider-upload-8201</module>
  27. <module>microcloud-consumer-upload</module>
  28. <module>microcloud-stream-provider-8401</module>
  29. <module>microcloud-stream-consumer-8402</module>
  30. </modules>
  31. <packaging>pom</packaging>
  32. <properties>
  33. <jdk.version>1.8</jdk.version>
  34. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  35. </properties>
  36. <dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>cn.hhj</groupId>
  40. <artifactId>microcloud-api</artifactId>
  41. <version>0.0.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>cn.hhj</groupId>
  45. <artifactId>microcloud-global-security</artifactId>
  46. <version>0.0.1</version>
  47. </dependency>
  48. <dependency> <!-- 进行SpringCloud依赖包的导入处理 -->
  49. <groupId>org.springframework.cloud</groupId>
  50. <artifactId>spring-cloud-dependencies</artifactId>
  51. <version>Greenwich.RELEASE</version>
  52. <type>pom</type>
  53. <scope>import</scope>
  54. </dependency>
  55. <dependency> <!-- SpringCloud离不开SpringBoot,所以必须要配置此依赖包 -->
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-dependencies</artifactId>
  58. <version>2.1.6.RELEASE</version>
  59. <type>pom</type>
  60. <scope>import</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>mysql</groupId>
  64. <artifactId>mysql-connector-java</artifactId>
  65. <version>8.0.13</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.alibaba</groupId>
  69. <artifactId>druid</artifactId>
  70. <version>1.1.18</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.mybatis.spring.boot</groupId>
  74. <artifactId>mybatis-spring-boot-starter</artifactId>
  75. <version>2.0.1</version>
  76. </dependency>
  77. </dependencies>
  78. </dependencyManagement>
  79. <build>
  80. <finalName>MicroCloud</finalName>
  81. <resources>
  82. <resource>
  83. <directory>src/main/resources</directory>
  84. <filtering>true</filtering>
  85. </resource>
  86. </resources>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-compiler-plugin</artifactId>
  91. <configuration>
  92. <source>${jdk.version}</source><!-- 源代码使用的开发版本 -->
  93. <target>${jdk.version}</target><!-- 需要生成的目标class文件的编译版本 -->
  94. <encoding>${project.build.sourceEncoding}</encoding>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-resources-plugin</artifactId>
  100. <configuration>
  101. <delimiters>
  102. <delimiter>$</delimiter>
  103. </delimiters>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. </project>