|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | | - <modelVersion>4.0.0</modelVersion> |
| 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> |
5 | 6 |
|
6 | | - <groupId>com.example.guestbook</groupId> |
7 | | - <artifactId>guestbook-service</artifactId> |
8 | | - <version>0.0.1-SNAPSHOT</version> |
9 | | - <packaging>jar</packaging> |
| 7 | + <groupId>com.example.guestbook</groupId> |
| 8 | + <artifactId>guestbook-service</artifactId> |
| 9 | + <version>0.0.1-SNAPSHOT</version> |
| 10 | + <packaging>jar</packaging> |
10 | 11 |
|
11 | | - <name>guestbook-service</name> |
12 | | - <description>Demo project for Spring Boot</description> |
| 12 | + <name>guestbook-service</name> |
| 13 | + <description>Demo project for Spring Boot</description> |
13 | 14 |
|
14 | | - <parent> |
15 | | - <groupId>com.example.guestbook</groupId> |
16 | | - <artifactId>guestbook-example</artifactId> |
17 | | - <version>0.0.1-SNAPSHOT</version> |
18 | | - <relativePath>../pom.xml</relativePath> |
19 | | - </parent> |
| 15 | + <parent> |
| 16 | + <groupId>com.example.guestbook</groupId> |
| 17 | + <artifactId>guestbook-example</artifactId> |
| 18 | + <version>0.0.1-SNAPSHOT</version> |
| 19 | + <relativePath>../pom.xml</relativePath> |
| 20 | + </parent> |
20 | 21 |
|
21 | | - <properties> |
22 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
23 | | - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
24 | | - <java.version>1.8</java.version> |
25 | | - <spring-cloud.version>Dalston.RELEASE</spring-cloud.version> |
26 | | - </properties> |
| 22 | + <properties> |
| 23 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 24 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 25 | + <java.version>1.8</java.version> |
| 26 | + </properties> |
27 | 27 |
|
28 | | - <dependencies> |
29 | | - <dependency> |
30 | | - <groupId>org.springframework.boot</groupId> |
31 | | - <artifactId>spring-boot-starter-actuator</artifactId> |
32 | | - </dependency> |
33 | | - <dependency> |
34 | | - <groupId>org.springframework.cloud</groupId> |
35 | | - <artifactId>spring-cloud-starter-sleuth</artifactId> |
36 | | - </dependency> |
37 | | - <dependency> |
38 | | - <groupId>org.springframework.cloud</groupId> |
39 | | - <artifactId>spring-cloud-starter-zipkin</artifactId> |
40 | | - </dependency> |
41 | | - <dependency> |
42 | | - <groupId>org.springframework.boot</groupId> |
43 | | - <artifactId>spring-boot-starter-data-jpa</artifactId> |
44 | | - </dependency> |
45 | | - <dependency> |
46 | | - <groupId>org.springframework.boot</groupId> |
47 | | - <artifactId>spring-boot-starter-data-rest</artifactId> |
48 | | - </dependency> |
49 | | - <dependency> |
50 | | - <groupId>mysql</groupId> |
51 | | - <artifactId>mysql-connector-java</artifactId> |
52 | | - </dependency> |
| 28 | + <dependencies> |
| 29 | + <dependency> |
| 30 | + <groupId>org.springframework.boot</groupId> |
| 31 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>org.springframework.cloud</groupId> |
| 35 | + <artifactId>spring-cloud-gcp-starter-trace</artifactId> |
| 36 | + </dependency> |
| 37 | + <dependency> |
| 38 | + <groupId>org.springframework.cloud</groupId> |
| 39 | + <artifactId>spring-cloud-gcp-starter-logging</artifactId> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>org.springframework.boot</groupId> |
| 43 | + <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.springframework.boot</groupId> |
| 47 | + <artifactId>spring-boot-starter-data-rest</artifactId> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>mysql</groupId> |
| 51 | + <artifactId>mysql-connector-java</artifactId> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>io.zipkin.brave</groupId> |
| 55 | + <artifactId>brave-instrumentation-mysql8</artifactId> |
| 56 | + </dependency> |
53 | 57 |
|
54 | | - <dependency> |
55 | | - <groupId>org.springframework.boot</groupId> |
56 | | - <artifactId>spring-boot-starter-test</artifactId> |
57 | | - <scope>test</scope> |
58 | | - </dependency> |
59 | | - </dependencies> |
| 58 | + <dependency> |
| 59 | + <groupId>org.springframework.boot</groupId> |
| 60 | + <artifactId>spring-boot-starter-test</artifactId> |
| 61 | + <scope>test</scope> |
| 62 | + </dependency> |
| 63 | + </dependencies> |
60 | 64 |
|
61 | | - <dependencyManagement> |
62 | | - <dependencies> |
63 | | - <dependency> |
64 | | - <groupId>org.springframework.cloud</groupId> |
65 | | - <artifactId>spring-cloud-dependencies</artifactId> |
66 | | - <version>${spring-cloud.version}</version> |
67 | | - <type>pom</type> |
68 | | - <scope>import</scope> |
69 | | - </dependency> |
70 | | - </dependencies> |
71 | | - </dependencyManagement> |
| 65 | + <dependencyManagement> |
| 66 | + <dependencies> |
| 67 | + <dependency> |
| 68 | + <groupId>org.springframework.cloud</groupId> |
| 69 | + <artifactId>spring-cloud-dependencies</artifactId> |
| 70 | + <version>${spring-cloud.version}</version> |
| 71 | + <type>pom</type> |
| 72 | + <scope>import</scope> |
| 73 | + </dependency> |
| 74 | + <!-- https://mvnrepository.com/artifact/io.zipkin.brave/brave-bom --> |
| 75 | + <dependency> |
| 76 | + <groupId>io.zipkin.brave</groupId> |
| 77 | + <artifactId>brave-bom</artifactId> |
| 78 | + <version>5.12.5</version> |
| 79 | + <type>pom</type> |
| 80 | + <scope>import</scope> |
| 81 | + </dependency> |
| 82 | + </dependencies> |
| 83 | + </dependencyManagement> |
72 | 84 |
|
73 | | - <build> |
74 | | - <plugins> |
75 | | - <!-- |
76 | | - <plugin> |
77 | | - <groupId>org.springframework.boot</groupId> |
78 | | - <artifactId>spring-boot-maven-plugin</artifactId> |
79 | | - </plugin> |
80 | | - --> |
81 | | - <plugin> |
82 | | - <artifactId>maven-jar-plugin</artifactId> |
83 | | - <configuration> |
84 | | - <archive> |
85 | | - <manifest> |
86 | | - <addClasspath>true</addClasspath> |
87 | | - <classpathPrefix>lib/</classpathPrefix> |
88 | | - <mainClass>com.example.guestbook.GuestbookServiceApplication</mainClass> |
89 | | - </manifest> |
90 | | - </archive> |
91 | | - </configuration> |
92 | | - </plugin> |
93 | | - <plugin> |
94 | | - <artifactId>maven-dependency-plugin</artifactId> |
95 | | - </plugin> |
96 | | - <plugin> |
97 | | - <groupId>com.spotify</groupId> |
98 | | - <artifactId>dockerfile-maven-plugin</artifactId> |
99 | | - </plugin> |
100 | | - <plugin> |
101 | | - <groupId>pl.project13.maven</groupId> |
102 | | - <artifactId>git-commit-id-plugin</artifactId> |
103 | | - </plugin> |
104 | | - </plugins> |
105 | | - </build> |
| 85 | + <build> |
| 86 | + <plugins> |
| 87 | + <plugin> |
| 88 | + <groupId>org.springframework.boot</groupId> |
| 89 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 90 | + </plugin> |
| 91 | + <plugin> |
| 92 | + <groupId>pl.project13.maven</groupId> |
| 93 | + <artifactId>git-commit-id-plugin</artifactId> |
| 94 | + </plugin> |
| 95 | + <plugin> |
| 96 | + <groupId>com.google.cloud.tools</groupId> |
| 97 | + <artifactId>jib-maven-plugin</artifactId> |
| 98 | + </plugin> |
| 99 | + </plugins> |
| 100 | + </build> |
106 | 101 |
|
107 | 102 |
|
108 | 103 | </project> |
0 commit comments