Skip to content

Commit 6b0dd70

Browse files
author
eugenp
committed
maven cleanup
1 parent acd6f04 commit 6b0dd70

8 files changed

Lines changed: 290 additions & 185 deletions

File tree

spring-all/pom.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>org.hibernate</groupId>
3939
<artifactId>hibernate-core</artifactId>
40-
<version>4.2.2.Final</version>
40+
<version>${hibernate.version}</version>
4141
</dependency>
4242
<dependency>
4343
<groupId>org.javassist</groupId>
@@ -47,7 +47,7 @@
4747
<dependency>
4848
<groupId>mysql</groupId>
4949
<artifactId>mysql-connector-java</artifactId>
50-
<version>5.1.25</version>
50+
<version>${mysql-connector-java.version}</version>
5151
<scope>runtime</scope>
5252
</dependency>
5353

@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>org.hibernate</groupId>
5858
<artifactId>hibernate-validator</artifactId>
59-
<version>5.0.1.Final</version>
59+
<version>${hibernate-validator.version}</version>
6060
</dependency>
6161

6262
<!-- web -->
@@ -80,7 +80,7 @@
8080
<dependency>
8181
<groupId>com.google.guava</groupId>
8282
<artifactId>guava</artifactId>
83-
<version>14.0.1</version>
83+
<version>${guava.version}</version>
8484
</dependency>
8585

8686
<!-- test scoped -->
@@ -128,6 +128,7 @@
128128
<plugin>
129129
<groupId>org.apache.maven.plugins</groupId>
130130
<artifactId>maven-surefire-plugin</artifactId>
131+
<version>${maven-surefire-plugin.version}</version>
131132
<configuration>
132133
<excludes>
133134
<!-- <exclude>**/*ProductionTest.java</exclude> -->
@@ -141,6 +142,7 @@
141142
<plugin>
142143
<groupId>org.codehaus.cargo</groupId>
143144
<artifactId>cargo-maven2-plugin</artifactId>
145+
<version>${cargo-maven2-plugin.version}</version>
144146
<configuration>
145147
<wait>true</wait>
146148
<container>
@@ -166,10 +168,21 @@
166168
<!-- Spring -->
167169
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
168170

171+
<!-- persistence -->
172+
<hibernate.version>4.2.2.Final</hibernate.version>
173+
<mysql-connector-java.version>5.1.25</mysql-connector-java.version>
174+
169175
<!-- logging -->
170176
<org.slf4j.version>1.7.5</org.slf4j.version>
171177
<logback.version>1.0.11</logback.version>
172178

179+
<!-- various -->
180+
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
181+
182+
<!-- util -->
183+
<guava.version>14.0.1</guava.version>
184+
<commons-lang3.version>3.1</commons-lang3.version>
185+
173186
<!-- testing -->
174187
<org.hamcrest.version>1.3</org.hamcrest.version>
175188
<junit.version>4.11</junit.version>
@@ -181,6 +194,9 @@
181194
<rest-assured.version>1.8.0</rest-assured.version>
182195
<groovy.version>1.8.9</groovy.version>
183196

197+
<!-- Maven plugins -->
198+
<cargo-maven2-plugin.version>1.4.2</cargo-maven2-plugin.version>
199+
<maven-surefire-plugin.version>2.14.1</maven-surefire-plugin.version>
184200
</properties>
185201

186202
</project>

spring-hibernate3/pom.xml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>org.hibernate</groupId>
3434
<artifactId>hibernate-core</artifactId>
35-
<version>3.6.10.Final</version>
35+
<version>${hibernate.version}</version>
3636
</dependency>
3737
<dependency>
3838
<groupId>org.javassist</groupId>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>mysql</groupId>
4444
<artifactId>mysql-connector-java</artifactId>
45-
<version>5.1.25</version>
45+
<version>${mysql-connector-java.version}</version>
4646
<scope>runtime</scope>
4747
</dependency>
4848

@@ -51,15 +51,15 @@
5151
<dependency>
5252
<groupId>com.google.guava</groupId>
5353
<artifactId>guava</artifactId>
54-
<version>14.0.1</version>
54+
<version>${guava.version}</version>
5555
</dependency>
5656

5757
<!-- test scoped -->
5858

5959
<dependency>
6060
<groupId>org.apache.commons</groupId>
6161
<artifactId>commons-lang3</artifactId>
62-
<version>3.1</version>
62+
<version>${commons-lang3.version}</version>
6363
<scope>test</scope>
6464
</dependency>
6565

@@ -113,6 +113,7 @@
113113
<plugin>
114114
<groupId>org.apache.maven.plugins</groupId>
115115
<artifactId>maven-surefire-plugin</artifactId>
116+
<version>${maven-surefire-plugin.version}</version>
116117
<configuration>
117118
<excludes>
118119
<!-- <exclude>**/*ProductionTest.java</exclude> -->
@@ -126,6 +127,7 @@
126127
<plugin>
127128
<groupId>org.codehaus.cargo</groupId>
128129
<artifactId>cargo-maven2-plugin</artifactId>
130+
<version>${cargo-maven2-plugin.version}</version>
129131
<configuration>
130132
<wait>true</wait>
131133
<container>
@@ -149,23 +151,37 @@
149151

150152
<properties>
151153
<!-- Spring -->
152-
<org.springframework.version>3.2.2.RELEASE</org.springframework.version>
154+
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
155+
156+
<!-- persistence -->
157+
<hibernate.version>3.6.10.Final</hibernate.version>
158+
<mysql-connector-java.version>5.1.25</mysql-connector-java.version>
153159

154160
<!-- logging -->
155161
<org.slf4j.version>1.7.5</org.slf4j.version>
156162
<logback.version>1.0.11</logback.version>
157163

164+
<!-- various -->
165+
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
166+
167+
<!-- util -->
168+
<guava.version>14.0.1</guava.version>
169+
<commons-lang3.version>3.1</commons-lang3.version>
170+
158171
<!-- testing -->
159172
<org.hamcrest.version>1.3</org.hamcrest.version>
160173
<junit.version>4.11</junit.version>
161174
<mockito.version>1.9.5</mockito.version>
162175

163176
<httpcore.version>4.2.4</httpcore.version>
164-
<httpclient.version>4.2.4</httpclient.version>
177+
<httpclient.version>4.2.5</httpclient.version>
165178

166179
<rest-assured.version>1.8.0</rest-assured.version>
167180
<groovy.version>1.8.9</groovy.version>
168181

182+
<!-- Maven plugins -->
183+
<cargo-maven2-plugin.version>1.4.2</cargo-maven2-plugin.version>
184+
<maven-surefire-plugin.version>2.14.1</maven-surefire-plugin.version>
169185
</properties>
170186

171187
</project>

spring-hibernate4/pom.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>org.hibernate</groupId>
3434
<artifactId>hibernate-core</artifactId>
35-
<version>4.2.2.Final</version>
35+
<version>${hibernate.version}</version>
3636
</dependency>
3737
<dependency>
3838
<groupId>org.javassist</groupId>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>mysql</groupId>
4444
<artifactId>mysql-connector-java</artifactId>
45-
<version>5.1.25</version>
45+
<version>${mysql-connector-java.version}</version>
4646
<scope>runtime</scope>
4747
</dependency>
4848

@@ -51,15 +51,15 @@
5151
<dependency>
5252
<groupId>org.hibernate</groupId>
5353
<artifactId>hibernate-validator</artifactId>
54-
<version>5.0.1.Final</version>
54+
<version>${hibernate-validator.version}</version>
5555
</dependency>
5656

5757
<!-- utils -->
5858

5959
<dependency>
6060
<groupId>com.google.guava</groupId>
6161
<artifactId>guava</artifactId>
62-
<version>14.0.1</version>
62+
<version>${guava.version}</version>
6363
</dependency>
6464

6565
<!-- test scoped -->
@@ -121,6 +121,7 @@
121121
<plugin>
122122
<groupId>org.apache.maven.plugins</groupId>
123123
<artifactId>maven-surefire-plugin</artifactId>
124+
<version>${maven-surefire-plugin.version}</version>
124125
<configuration>
125126
<excludes>
126127
<!-- <exclude>**/*ProductionTest.java</exclude> -->
@@ -134,6 +135,7 @@
134135
<plugin>
135136
<groupId>org.codehaus.cargo</groupId>
136137
<artifactId>cargo-maven2-plugin</artifactId>
138+
<version>${cargo-maven2-plugin.version}</version>
137139
<configuration>
138140
<wait>true</wait>
139141
<container>
@@ -159,10 +161,21 @@
159161
<!-- Spring -->
160162
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
161163

164+
<!-- persistence -->
165+
<hibernate.version>4.2.2.Final</hibernate.version>
166+
<mysql-connector-java.version>5.1.25</mysql-connector-java.version>
167+
162168
<!-- logging -->
163169
<org.slf4j.version>1.7.5</org.slf4j.version>
164170
<logback.version>1.0.11</logback.version>
165171

172+
<!-- various -->
173+
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
174+
175+
<!-- util -->
176+
<guava.version>14.0.1</guava.version>
177+
<commons-lang3.version>3.1</commons-lang3.version>
178+
166179
<!-- testing -->
167180
<org.hamcrest.version>1.3</org.hamcrest.version>
168181
<junit.version>4.11</junit.version>
@@ -174,6 +187,9 @@
174187
<rest-assured.version>1.8.0</rest-assured.version>
175188
<groovy.version>1.8.9</groovy.version>
176189

190+
<!-- Maven plugins -->
191+
<cargo-maven2-plugin.version>1.4.2</cargo-maven2-plugin.version>
192+
<maven-surefire-plugin.version>2.14.1</maven-surefire-plugin.version>
177193
</properties>
178194

179195
</project>

spring-jpa/pom.xml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3+
34
<groupId>org.baeldung</groupId>
45
<artifactId>spring-jpa</artifactId>
56
<version>0.1-SNAPSHOT</version>
6-
7-
<name>spring-jpa</name>
7+
88
<packaging>war</packaging>
9+
<name>spring-jpa</name>
910

1011
<dependencies>
1112

@@ -32,12 +33,12 @@
3233
<dependency>
3334
<groupId>org.hibernate</groupId>
3435
<artifactId>hibernate-core</artifactId>
35-
<version>4.2.1.Final</version>
36+
<version>${hibernate.version}</version>
3637
</dependency>
3738
<dependency>
3839
<groupId>org.hibernate</groupId>
3940
<artifactId>hibernate-entitymanager</artifactId>
40-
<version>4.2.1.Final</version>
41+
<version>${hibernate.version}</version>
4142
</dependency>
4243
<dependency>
4344
<groupId>org.javassist</groupId>
@@ -47,7 +48,7 @@
4748
<dependency>
4849
<groupId>mysql</groupId>
4950
<artifactId>mysql-connector-java</artifactId>
50-
<version>5.1.25</version>
51+
<version>${mysql-connector-java.version}</version>
5152
<scope>runtime</scope>
5253
</dependency>
5354

@@ -56,23 +57,23 @@
5657
<dependency>
5758
<groupId>org.hibernate</groupId>
5859
<artifactId>hibernate-validator</artifactId>
59-
<version>5.0.1.Final</version>
60+
<version>${hibernate-validator.version}</version>
6061
</dependency>
6162

6263
<!-- utils -->
6364

6465
<dependency>
6566
<groupId>com.google.guava</groupId>
6667
<artifactId>guava</artifactId>
67-
<version>14.0.1</version>
68+
<version>${guava.version}</version>
6869
</dependency>
6970

7071
<!-- test scoped -->
7172

7273
<dependency>
7374
<groupId>org.apache.commons</groupId>
7475
<artifactId>commons-lang3</artifactId>
75-
<version>3.1</version>
76+
<version>${commons-lang3.version}</version>
7677
<scope>test</scope>
7778
</dependency>
7879

@@ -126,6 +127,7 @@
126127
<plugin>
127128
<groupId>org.apache.maven.plugins</groupId>
128129
<artifactId>maven-surefire-plugin</artifactId>
130+
<version>${maven-surefire-plugin.version}</version>
129131
<configuration>
130132
<excludes>
131133
<!-- <exclude>**/*ProductionTest.java</exclude> -->
@@ -139,6 +141,7 @@
139141
<plugin>
140142
<groupId>org.codehaus.cargo</groupId>
141143
<artifactId>cargo-maven2-plugin</artifactId>
144+
<version>${cargo-maven2-plugin.version}</version>
142145
<configuration>
143146
<wait>true</wait>
144147
<container>
@@ -162,23 +165,37 @@
162165

163166
<properties>
164167
<!-- Spring -->
165-
<org.springframework.version>3.2.2.RELEASE</org.springframework.version>
168+
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
169+
170+
<!-- persistence -->
171+
<hibernate.version>4.2.2.Final</hibernate.version>
172+
<mysql-connector-java.version>5.1.25</mysql-connector-java.version>
166173

167174
<!-- logging -->
168175
<org.slf4j.version>1.7.5</org.slf4j.version>
169176
<logback.version>1.0.11</logback.version>
170177

178+
<!-- various -->
179+
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
180+
181+
<!-- util -->
182+
<guava.version>14.0.1</guava.version>
183+
<commons-lang3.version>3.1</commons-lang3.version>
184+
171185
<!-- testing -->
172186
<org.hamcrest.version>1.3</org.hamcrest.version>
173187
<junit.version>4.11</junit.version>
174188
<mockito.version>1.9.5</mockito.version>
175189

176190
<httpcore.version>4.2.4</httpcore.version>
177-
<httpclient.version>4.2.4</httpclient.version>
191+
<httpclient.version>4.2.5</httpclient.version>
178192

179193
<rest-assured.version>1.8.0</rest-assured.version>
180194
<groovy.version>1.8.9</groovy.version>
181195

196+
<!-- Maven plugins -->
197+
<cargo-maven2-plugin.version>1.4.2</cargo-maven2-plugin.version>
198+
<maven-surefire-plugin.version>2.14.1</maven-surefire-plugin.version>
182199
</properties>
183200

184201
</project>

0 commit comments

Comments
 (0)