|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
| 4 | + http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.example</groupId> |
| 8 | + <artifactId>spring-cloud</artifactId> |
| 9 | + <version>0.0.1-SNAPSHOT</version> |
| 10 | + <name>spring-cloud</name> |
| 11 | + <packaging>jar</packaging> |
| 12 | + |
| 13 | + <parent> |
| 14 | + <groupId>org.springframework.boot</groupId> |
| 15 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 16 | + <version>3.2.5</version> |
| 17 | + <relativePath/> <!-- lookup parent from repository --> |
| 18 | + </parent> |
| 19 | + |
| 20 | + <properties> |
| 21 | + <java.version>17</java.version> |
| 22 | + <spring-cloud.version>2023.0.1</spring-cloud.version> |
| 23 | + </properties> |
| 24 | + |
| 25 | + <dependencies> |
| 26 | + <!-- Spring Boot Web --> |
| 27 | + <dependency> |
| 28 | + <groupId>org.springframework.boot</groupId> |
| 29 | + <artifactId>spring-boot-starter-web</artifactId> |
| 30 | + </dependency> |
| 31 | + |
| 32 | + <!-- Spring Cloud Config Client --> |
| 33 | + <dependency> |
| 34 | + <groupId>org.springframework.cloud</groupId> |
| 35 | + <artifactId>spring-cloud-starter-config</artifactId> |
| 36 | + </dependency> |
| 37 | + |
| 38 | + <!-- Spring Cloud Discovery Client (Eureka) --> |
| 39 | + <dependency> |
| 40 | + <groupId>org.springframework.cloud</groupId> |
| 41 | + <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <!-- Actuator for health checks --> |
| 45 | + <dependency> |
| 46 | + <groupId>org.springframework.boot</groupId> |
| 47 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 48 | + </dependency> |
| 49 | + |
| 50 | + <!-- Test dependencies --> |
| 51 | + <dependency> |
| 52 | + <groupId>org.springframework.boot</groupId> |
| 53 | + <artifactId>spring-boot-starter-test</artifactId> |
| 54 | + <scope>test</scope> |
| 55 | + </dependency> |
| 56 | + </dependencies> |
| 57 | + |
| 58 | + <dependencyManagement> |
| 59 | + <dependencies> |
| 60 | + <dependency> |
| 61 | + <groupId>org.springframework.cloud</groupId> |
| 62 | + <artifactId>spring-cloud-dependencies</artifactId> |
| 63 | + <version>${spring-cloud.version}</version> |
| 64 | + <type>pom</type> |
| 65 | + <scope>import</scope> |
| 66 | + </dependency> |
| 67 | + </dependencies> |
| 68 | + </dependencyManagement> |
| 69 | + |
| 70 | + <build> |
| 71 | + <plugins> |
| 72 | + <plugin> |
| 73 | + <groupId>org.springframework.boot</groupId> |
| 74 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 75 | + </plugin> |
| 76 | + </plugins> |
| 77 | + </build> |
| 78 | +</project> |
0 commit comments