-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
51 lines (49 loc) · 1.89 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.neusoft</groupId>
<artifactId>springcloud_demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- 统一JAR包和版本号的管理 -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<!-- dependmanagement是用在父工程中声明依赖,不引用。子模块继承之后再引包。 作用是,锁定版本,子模块不用写grouid and
version -->
<dependencyManagement>
<dependencies>
<!--boot 2.3.3 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.3.3.RELEASE</version>
<type>pom</type>
<!-- Maven也是单继承。这里继承了spring-boot中的dependencyManagement 但是下面还要继承spring-cloud中的dependencyManagement。
使用scope=import就可以实现多继承了 -->
<scope>import</scope>
</dependency>
<!--cloud hoxton.sr9 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR9</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>provider_server_11000</module>
<module>consumer_server_12000</module>
<module>eureka_server_13000</module>
<module>eureka_server_13001</module>
<module>provider_server_11001</module>
<module>gateway_server_14000</module>
<module>config_server_15000</module>
<module>config_server_15001</module>
</modules>
</project>