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>org.example</groupId>
    7. <artifactId>SpringCloud-BySnow</artifactId>
    8. <packaging>pom</packaging>
    9. <version>1.0-SNAPSHOT</version>
    10. <!--子模块-->
    11. <modules>
    12. <module>sentinel-dashboard</module>
    13. <module>nacos-discovery-server</module>
    14. </modules>
    15. <!--父工程依赖的spring cloud-->
    16. <parent>
    17. <groupId>org.springframework.boot</groupId>
    18. <artifactId>spring-boot-starter-parent</artifactId>
    19. <version>2.0.5.RELEASE</version>
    20. <relativePath/> <!-- lookup parent from repository -->
    21. </parent>
    22. <properties>
    23. <maven.compiler.source>8</maven.compiler.source>
    24. <maven.compiler.target>8</maven.compiler.target>
    25. </properties>
    26. <!--子模块依赖-->
    27. <dependencies>
    28. <dependency>
    29. <groupId>org.springframework.boot</groupId>
    30. <artifactId>spring-boot-starter-test</artifactId>
    31. <scope>test</scope>
    32. </dependency>
    33. <dependency>
    34. <groupId>org.projectlombok</groupId>
    35. <artifactId>lombok</artifactId>
    36. <version>1.18.2</version>
    37. <optional>true</optional>
    38. </dependency>
    39. </dependencies>
    40. <!--子模块依赖版本管理-->
    41. <dependencyManagement>
    42. <dependencies>
    43. <dependency>
    44. <groupId>org.springframework.cloud</groupId>
    45. <artifactId>spring-cloud-dependencies</artifactId>
    46. <version>Finchley.SR1</version>
    47. <type>pom</type>
    48. <scope>import</scope>
    49. </dependency>
    50. <dependency>
    51. <groupId>org.springframework.cloud</groupId>
    52. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    53. <version>0.2.2.RELEASE</version>
    54. <type>pom</type>
    55. <scope>import</scope>
    56. </dependency>
    57. </dependencies>
    58. </dependencyManagement>
    59. <build>
    60. <plugins>
    61. <plugin>
    62. <groupId>org.springframework.boot</groupId>
    63. <artifactId>spring-boot-maven-plugin</artifactId>
    64. </plugin>
    65. </plugins>
    66. </build>
    67. </project>