Skip to content

Commit 1a02f4d

Browse files
committed
[Maven] Corrected the spring boot dependency import
1 parent 488a4cf commit 1a02f4d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

pom.xml

+13-14
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,35 @@
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1414
<java.version>1.8</java.version>
15-
<spring.version>1.5.4.RELEASE</spring.version>
1615
<nosqlunit.version>0.7.6</nosqlunit.version>
1716
<swagger.version>2.7.0</swagger.version>
1817
</properties>
1918

19+
<dependencyManagement>
20+
<dependencies>
21+
<dependency>
22+
<!-- Import dependency management from Spring Boot -->
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-dependencies</artifactId>
25+
<version>1.5.8.RELEASE</version>
26+
<type>pom</type>
27+
<scope>import</scope>
28+
</dependency>
29+
</dependencies>
30+
</dependencyManagement>
31+
2032
<dependencies>
21-
<dependency>
22-
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-dependencies</artifactId>
24-
<version>${spring.version}</version>
25-
<type>pom</type>
26-
</dependency>
2733
<dependency>
2834
<groupId>org.springframework.boot</groupId>
2935
<artifactId>spring-boot-starter-web</artifactId>
30-
<version>${spring.version}</version>
3136
</dependency>
3237
<dependency>
3338
<groupId>org.springframework.boot</groupId>
3439
<artifactId>spring-boot-starter-test</artifactId>
35-
<version>${spring.version}</version>
3640
</dependency>
3741
<dependency>
3842
<groupId>org.springframework.boot</groupId>
3943
<artifactId>spring-boot-starter</artifactId>
40-
<version>${spring.version}</version>
4144
<exclusions>
4245
<exclusion>
4346
<groupId>org.springframework.boot</groupId>
@@ -48,12 +51,10 @@
4851
<dependency>
4952
<groupId>org.springframework.boot</groupId>
5053
<artifactId>spring-boot-starter-log4j2</artifactId>
51-
<version>${spring.version}</version>
5254
</dependency>
5355
<dependency>
5456
<groupId>org.springframework.boot</groupId>
5557
<artifactId>spring-boot-starter-security</artifactId>
56-
<version>${spring.version}</version>
5758
</dependency>
5859
<dependency>
5960
<groupId>org.springframework.security</groupId>
@@ -64,7 +65,6 @@
6465
<dependency>
6566
<groupId>org.springframework.boot</groupId>
6667
<artifactId>spring-boot-starter-data-mongodb</artifactId>
67-
<version>${spring.version}</version>
6868
</dependency>
6969
<dependency>
7070
<groupId>io.springfox</groupId>
@@ -105,7 +105,6 @@
105105
<plugin>
106106
<groupId>org.springframework.boot</groupId>
107107
<artifactId>spring-boot-maven-plugin</artifactId>
108-
<version>${spring.version}</version>
109108
<executions>
110109
<execution>
111110
<goals>

0 commit comments

Comments
 (0)