Skip to content

Commit d54c7a2

Browse files
committed
Cleaned up Maven poms
1 parent 1285880 commit d54c7a2

File tree

6 files changed

+55
-114
lines changed

6 files changed

+55
-114
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@
1717
<module>spring-boot-mongo</module>
1818
</modules>
1919

20+
<properties>
21+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22+
<java.version>1.8</java.version>
23+
<junit.version>4.12</junit.version>
24+
</properties>
25+
26+
<build>
27+
<plugins>
28+
<plugin>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-compiler-plugin</artifactId>
31+
<version>3.5.1</version>
32+
<configuration>
33+
<source>${java.version}</source>
34+
<target>${java.version}</target>
35+
</configuration>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
2040
<organization>
2141
<name>codecentric AG</name>
2242
<url>http://www.codecentric.de</url>

spring-boot-mongo/pom.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>de.codecentric</groupId>
7-
<artifactId>mongoboot</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
9-
<packaging>jar</packaging>
10-
11-
<name>SpringBoot MongoDB REST</name>
12-
<description>Demo project for Spring Boot MongoDB</description>
13-
146
<parent>
157
<groupId>org.springframework.boot</groupId>
168
<artifactId>spring-boot-starter-parent</artifactId>
179
<version>1.5.4.RELEASE</version>
1810
<relativePath/>
1911
</parent>
2012

13+
<groupId>de.codecentric</groupId>
14+
<artifactId>mongoboot</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<packaging>jar</packaging>
17+
<name>SpringBoot MongoDB REST</name>
18+
<description>Demo project for Spring Boot MongoDB</description>
19+
2120
<properties>
2221
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2322
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

springdata-jpa/pom.xml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>de.codecentric</groupId>
5+
<parent>
6+
<groupId>de.codecentric</groupId>
7+
<artifactId>springdata-examples</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
10+
611
<artifactId>springdata-jpa-examples</artifactId>
7-
<version>1.0.0</version>
812
<packaging>jar</packaging>
9-
1013
<name>Spring Data JPA Examples</name>
1114
<url>https://github.com/ttrelle/spring-data-examples/tree/master/springdata-jpa</url>
1215

13-
<properties>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
</properties>
16-
1716
<dependencies>
1817

1918
<dependency>
@@ -44,7 +43,7 @@
4443
<dependency>
4544
<groupId>junit</groupId>
4645
<artifactId>junit</artifactId>
47-
<version>4.11</version>
46+
<version>${junit.version}</version>
4847
<scope>test</scope>
4948
</dependency>
5049
<dependency>
@@ -61,18 +60,4 @@
6160
</dependency>
6261
</dependencies>
6362

64-
<build>
65-
<plugins>
66-
<plugin>
67-
<groupId>org.apache.maven.plugins</groupId>
68-
<artifactId>maven-compiler-plugin</artifactId>
69-
<version>2.3.2</version>
70-
<configuration>
71-
<source>1.7</source>
72-
<target>1.7</target>
73-
</configuration>
74-
</plugin>
75-
</plugins>
76-
</build>
77-
7863
</project>

springdata-mongodb/pom.xml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>de.codecentric</groupId>
5+
<parent>
6+
<groupId>de.codecentric</groupId>
7+
<artifactId>springdata-examples</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
10+
611
<artifactId>springdata-mongodb-examples</artifactId>
7-
<version>1.0.0</version>
812
<packaging>jar</packaging>
9-
1013
<name>Spring Data MongoDB Examples</name>
1114
<url>https://github.com/ttrelle/spring-data-examples/tree/master/springdata-mongodb</url>
1215

1316
<properties>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1517
<spring.data.mongodb.version>1.9.6.RELEASE</spring.data.mongodb.version>
16-
<mongo.driver.version>3.4.1</mongo.driver.version>
18+
<mongo.driver.version>3.4.2</mongo.driver.version>
1719
<spring.version>4.2.9.RELEASE</spring.version>
18-
<junit.version>4.12</junit.version>
1920
</properties>
2021

2122
<dependencies>
@@ -56,33 +57,8 @@
5657
<targetPath>test-classes</targetPath>
5758
</resource>
5859
</resources>
59-
60-
<plugins>
61-
<plugin>
62-
<groupId>org.apache.maven.plugins</groupId>
63-
<artifactId>maven-compiler-plugin</artifactId>
64-
<version>2.3.2</version>
65-
<configuration>
66-
<source>1.7</source>
67-
<target>1.7</target>
68-
</configuration>
69-
</plugin>
70-
</plugins>
7160
</build>
7261

73-
74-
<organization>
75-
<name>codecentric AG</name>
76-
<url>http://www.codecentric.de</url>
77-
</organization>
78-
79-
<developers>
80-
<developer>
81-
<name>Tobias Trelle</name>
82-
<email>[email protected]</email>
83-
</developer>
84-
</developers>
85-
8662
<repositories>
8763
<repository>
8864
<id>spring-snapshot</id>

springdata-neo4j/pom.xml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>de.codecentric</groupId>
5+
<parent>
6+
<groupId>de.codecentric</groupId>
7+
<artifactId>springdata-examples</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
10+
611
<artifactId>springdata-neo4j-examples</artifactId>
7-
<version>1.0.0</version>
812
<packaging>jar</packaging>
9-
1013
<name>Spring Data Neo4j Examples</name>
1114
<url>http://maven.apache.org</url>
1215

1316
<properties>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1517
<neo4j.version>2.2.5</neo4j.version>
1618
</properties>
1719

@@ -27,7 +29,7 @@
2729
<dependency>
2830
<groupId>junit</groupId>
2931
<artifactId>junit</artifactId>
30-
<version>4.11</version>
32+
<version>${junit.version}</version>
3133
<scope>test</scope>
3234
</dependency>
3335
<dependency>
@@ -85,18 +87,4 @@
8587

8688
</dependencies>
8789

88-
<build>
89-
<plugins>
90-
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-compiler-plugin</artifactId>
93-
<version>3.1</version>
94-
<configuration>
95-
<source>1.7</source>
96-
<target>1.7</target>
97-
</configuration>
98-
</plugin>
99-
</plugins>
100-
</build>
101-
10290
</project>

springdata-redis/pom.xml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>de.codecentric</groupId>
5+
<parent>
6+
<groupId>de.codecentric</groupId>
7+
<artifactId>springdata-examples</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
10+
611
<artifactId>springdata-redis-examples</artifactId>
7-
<version>1.0.0</version>
812
<packaging>jar</packaging>
9-
1013
<name>Spring Data Redis Examples</name>
1114
<url>https://github.com/ttrelle/spring-data-examples/tree/master/springdata-redis</url>
1215

13-
<properties>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
</properties>
16-
1716
<dependencies>
1817
<dependency>
1918
<groupId>org.springframework.data</groupId>
@@ -30,7 +29,7 @@
3029
<dependency>
3130
<groupId>junit</groupId>
3231
<artifactId>junit</artifactId>
33-
<version>4.11</version>
32+
<version>${junit.version}</version>
3433
<scope>test</scope>
3534
</dependency>
3635
<dependency>
@@ -70,30 +69,4 @@
7069
</dependency>
7170
</dependencies>
7271

73-
<build>
74-
<plugins>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-compiler-plugin</artifactId>
78-
<version>2.3.2</version>
79-
<configuration>
80-
<source>1.7</source>
81-
<target>1.7</target>
82-
</configuration>
83-
</plugin>
84-
</plugins>
85-
</build>
86-
87-
<organization>
88-
<name>codecentric AG</name>
89-
<url>http://www.codecentric.de</url>
90-
</organization>
91-
92-
<developers>
93-
<developer>
94-
<name>Tobias Trelle</name>
95-
<email>[email protected]</email>
96-
</developer>
97-
</developers>
98-
9972
</project>

0 commit comments

Comments
 (0)