Skip to content

Commit 244d774

Browse files
authored
Merge pull request eugenp#5506 from eugenp/fix-greeter-parent
fix custom starter setup
2 parents 3317af1 + d10f6b5 commit 244d774

File tree

2 files changed

+33
-2
lines changed
  • spring-boot-custom-starter

2 files changed

+33
-2
lines changed

spring-boot-custom-starter/greeter-spring-boot-sample-app/pom.xml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,51 @@
77
<version>0.0.1-SNAPSHOT</version>
88

99
<parent>
10-
<artifactId>parent-boot-1</artifactId>
10+
<artifactId>spring-boot-custom-starter</artifactId>
1111
<groupId>com.baeldung</groupId>
1212
<version>0.0.1-SNAPSHOT</version>
13-
<relativePath>../../parent-boot-1</relativePath>
13+
<relativePath>../../spring-boot-custom-starter</relativePath>
1414
</parent>
15+
16+
<dependencyManagement>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework.boot</groupId>
20+
<artifactId>spring-boot-dependencies</artifactId>
21+
<version>${spring-boot.version}</version>
22+
<type>pom</type>
23+
<scope>import</scope>
24+
</dependency>
25+
</dependencies>
26+
</dependencyManagement>
1527

1628
<dependencies>
1729
<dependency>
1830
<groupId>com.baeldung</groupId>
1931
<artifactId>greeter-spring-boot-starter</artifactId>
2032
<version>${greeter-starter.version}</version>
2133
</dependency>
34+
<dependency>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-starter-test</artifactId>
37+
<scope>test</scope>
38+
</dependency>
2239
</dependencies>
40+
41+
<build>
42+
<pluginManagement>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.springframework.boot</groupId>
46+
<artifactId>spring-boot-maven-plugin</artifactId>
47+
<version>${spring-boot.version}</version>
48+
</plugin>
49+
</plugins>
50+
</pluginManagement>
51+
</build>
2352

2453
<properties>
54+
<spring-boot.version>1.5.15.RELEASE</spring-boot.version>
2555
<greeter-starter.version>0.0.1-SNAPSHOT</greeter-starter.version>
2656
</properties>
2757

spring-boot-custom-starter/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<module>greeter-spring-boot-starter</module>
1919
<module>greeter-spring-boot-sample-app</module>
2020
</modules>
21+
2122

2223
</project>

0 commit comments

Comments
 (0)