Skip to content

Commit

Permalink
Use special "bill of materials" (BOM) dependency to ensure the same v…
Browse files Browse the repository at this point in the history
  • Loading branch information
php-coder committed Sep 28, 2014
1 parent 5d55129 commit 2b5586c
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@
<skipTests>false</skipTests>
</properties>

<dependencyManagement>
<dependencies>
<!-- http://docs.spring.io/spring/docs/4.0.x/spring-framework-reference/html/overview.html#overview-maven-bom -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>

<dependency>
Expand Down Expand Up @@ -116,7 +129,6 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<!-- Because we use jcl-over-slf4j instead -->
Expand All @@ -129,20 +141,17 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>

<!-- For mail classes -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>

<dependency>
Expand All @@ -157,19 +166,6 @@
<version>${spring.security.version}</version>
</dependency>

<!--
spring-security-web 3.1.0 depends from spring-aop 3.0.6,
so to force application use spring-aop 3.1.1 we add this
dependency explicitly. May be removed when new Spring
Security will not depends from old version of Spring.
-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
Expand Down Expand Up @@ -366,7 +362,6 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -472,7 +467,6 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down

0 comments on commit 2b5586c

Please sign in to comment.