Skip to content

Commit bf1aaf1

Browse files
authored
[JAVA-28504] Clean up
1 parent d73cd91 commit bf1aaf1

File tree

23 files changed

+32
-83
lines changed

23 files changed

+32
-83
lines changed

spring-websockets/pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.github.javafaker</groupId>
2828
<artifactId>javafaker</artifactId>
29-
<version>1.0.2</version>
29+
<version>${javafaker.version}</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.google.code.gson</groupId>
@@ -44,4 +44,8 @@
4444
</resources>
4545
</build>
4646

47+
<properties>
48+
<javafaker.version>1.0.2</javafaker.version>
49+
</properties>
50+
4751
</project>

static-analysis/error-prone-project/pom.xml

+4-7
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>error-prone-project</artifactId>
7+
68
<parent>
79
<groupId>com.baeldung</groupId>
810
<artifactId>static-analysis</artifactId>
911
<version>1.0-SNAPSHOT</version>
1012
</parent>
1113

12-
<artifactId>error-prone-project</artifactId>
13-
1414
<build>
1515
<plugins>
1616
<plugin>
@@ -19,7 +19,6 @@
1919
<version>${maven-compiler-plugin.version}</version>
2020
<configuration>
2121
<release>17</release>
22-
<encoding>UTF-8</encoding>
2322
<fork>true</fork>
2423
<compilerArgs>
2524
<arg>-XDcompilePolicy=simple</arg>
@@ -44,7 +43,7 @@
4443
<path>
4544
<groupId>com.baeldung</groupId>
4645
<artifactId>my-bugchecker-plugin</artifactId>
47-
<version>1.0-SNAPSHOT</version>
46+
<version>${my-bugchecker-plugin.version}</version>
4847
</path>
4948
</annotationProcessorPaths>
5049
</configuration>
@@ -53,9 +52,7 @@
5352
</build>
5453

5554
<properties>
56-
<maven.compiler.source>17</maven.compiler.source>
57-
<maven.compiler.target>17</maven.compiler.target>
58-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55+
<my-bugchecker-plugin.version>1.0-SNAPSHOT</my-bugchecker-plugin.version>
5956
</properties>
6057

6158
</project>

static-analysis/my-bugchecker-plugin/pom.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>my-bugchecker-plugin</artifactId>
7+
<packaging>jar</packaging>
8+
69
<parent>
710
<groupId>com.baeldung</groupId>
811
<artifactId>static-analysis</artifactId>
912
<version>1.0-SNAPSHOT</version>
1013
</parent>
11-
<packaging>jar</packaging>
12-
<artifactId>my-bugchecker-plugin</artifactId>
1314

1415
<build>
1516
<plugins>
@@ -47,10 +48,4 @@
4748
</dependency>
4849
</dependencies>
4950

50-
<properties>
51-
<maven.compiler.source>17</maven.compiler.source>
52-
<maven.compiler.target>17</maven.compiler.target>
53-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54-
</properties>
55-
5651
</project>

static-analysis/pmd/pom.xml

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>pmd</artifactId>
7+
68
<parent>
79
<groupId>com.baeldung</groupId>
810
<artifactId>static-analysis</artifactId>
911
<version>1.0-SNAPSHOT</version>
1012
</parent>
1113

12-
<artifactId>pmd</artifactId>
13-
14-
<properties>
15-
<maven.compiler.source>17</maven.compiler.source>
16-
<maven.compiler.target>17</maven.compiler.target>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
</properties>
19-
2014
</project>

tablesaw/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
<plugin>
2626
<groupId>org.apache.maven.plugins</groupId>
2727
<artifactId>maven-compiler-plugin</artifactId>
28-
<version>3.8.0</version>
29-
<configuration>
30-
<source>17</source>
31-
<target>17</target>
32-
</configuration>
3328
</plugin>
3429
</plugins>
3530
</build>

testing-modules/cucumber/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@
121121
</profiles>
122122

123123
<properties>
124-
<maven.compiler.source>14</maven.compiler.source>
125-
<maven.compiler.target>14</maven.compiler.target>
126124
<cucumber.version>6.10.3</cucumber.version>
127125
<cucumber-reporting.version>5.4.0</cucumber-reporting.version>
128126
<selenium.version>3.141.59</selenium.version>

testing-modules/gatling-java/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@
7272
</build>
7373

7474
<properties>
75-
<maven.compiler.source>1.8</maven.compiler.source>
76-
<maven.compiler.target>1.8</maven.compiler.target>
77-
<encoding>UTF-8</encoding>
7875
<gatling.version>3.9.5</gatling.version>
7976
<gatling-maven-plugin.version>4.3.0</gatling-maven-plugin.version>
8077
<faker.version>1.0.2</faker.version>

testing-modules/gatling/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@
105105
</build>
106106

107107
<properties>
108-
<maven.compiler.source>1.8</maven.compiler.source>
109-
<maven.compiler.target>1.8</maven.compiler.target>
110-
<encoding>UTF-8</encoding>
111108
<scala.version>2.12.6</scala.version>
112109
<gatling.version>3.3.1</gatling.version>
113110
<scala-maven-plugin.version>4.3.0</scala-maven-plugin.version>

testing-modules/jqwik/pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>net.jqwik</groupId>
1919
<artifactId>jqwik</artifactId>
20-
<version>1.7.4</version>
20+
<version>${jqwik.version}</version>
2121
<scope>test</scope>
2222
</dependency>
2323
<dependency>
@@ -53,5 +53,9 @@
5353
</resources>
5454
</build>
5555

56+
<properties>
57+
<jqwik.version>1.7.4</jqwik.version>
58+
</properties>
59+
5660
</project>
5761

testing-modules/junit-5-advanced/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>com.github.stefanbirkner</groupId>
2020
<artifactId>system-lambda</artifactId>
21-
<version>1.2.1</version>
21+
<version>${system-lambda.version}</version>
2222
<scope>test</scope>
2323
</dependency>
2424
<dependency>
@@ -79,6 +79,7 @@
7979
</build>
8080

8181
<properties>
82+
<system-lambda.version>1.2.1</system-lambda.version>
8283
<jmockit.version>1.49</jmockit.version>
8384
<assertj.version>3.24.2</assertj.version>
8485
<junit-platform.version>1.10.1</junit-platform.version>

testing-modules/junit-5-basics-2/pom.xml

-7
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,11 @@
3636
<plugin>
3737
<groupId>org.apache.maven.plugins</groupId>
3838
<artifactId>maven-compiler-plugin</artifactId>
39-
<configuration>
40-
<source>11</source>
41-
<target>11</target>
42-
</configuration>
4339
</plugin>
4440
</plugins>
4541
</build>
4642

4743
<properties>
48-
<maven.compiler.source>11</maven.compiler.source>
49-
<maven.compiler.target>11</maven.compiler.target>
50-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5144
<commons-cli.version>1.5.0</commons-cli.version>
5245
<junit-jupiter-api.version>5.10.0</junit-jupiter-api.version>
5346
<mockito-core.version>5.5.0</mockito-core.version>

testing-modules/junit-5/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<plugin>
108108
<groupId>org.codehaus.mojo</groupId>
109109
<artifactId>exec-maven-plugin</artifactId>
110-
<version>${exec-maven-plugin.version}</version>
111110
<executions>
112111
<execution>
113112
<goals>

testing-modules/load-testing-comparison/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@
6666
</build>
6767

6868
<properties>
69-
<maven.compiler.source>1.8</maven.compiler.source>
70-
<maven.compiler.target>1.8</maven.compiler.target>
71-
<encoding>UTF-8</encoding>
7269
<scala.version>2.12.12</scala.version>
7370
<gatling.version>3.4.0</gatling.version>
7471
<scala-maven-plugin.version>4.4.0</scala-maven-plugin.version>

testing-modules/mockito-2/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
</dependencies>
2222

2323
<properties>
24-
<maven.compiler.source>8</maven.compiler.source>
25-
<maven.compiler.target>8</maven.compiler.target>
26-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2724
<mockito-inline.version>4.8.1</mockito-inline.version>
2825
</properties>
2926

vavr-modules/java-vavr-stream/pom.xml

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@
1919
<dependency>
2020
<groupId>io.vavr</groupId>
2121
<artifactId>vavr</artifactId>
22-
<version>${io.vavr.version}</version>
22+
<version>${vavr.version}</version>
2323
</dependency>
2424
</dependencies>
2525

26-
<properties>
27-
<io.vavr.version>0.9.2</io.vavr.version>
28-
</properties>
29-
3026
</project>

vavr-modules/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@
3030
</pluginManagement>
3131
</build>
3232

33+
<properties>
34+
<vavr.version>0.9.2</vavr.version>
35+
</properties>
36+
3337
</project>

vavr-modules/vavr-2/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,4 @@
2121
</dependency>
2222
</dependencies>
2323

24-
<properties>
25-
<vavr.version>0.9.1</vavr.version>
26-
</properties>
27-
2824
</project>

vertx-modules/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@
3030
</pluginManagement>
3131
</build>
3232

33+
<properties>
34+
<vertx.version>3.9.15</vertx.version>
35+
</properties>
36+
3337
</project>

vertx-modules/vertx-and-rxjava/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,4 @@
4040
</plugins>
4141
</build>
4242

43-
<properties>
44-
<vertx.version>3.9.15</vertx.version>
45-
</properties>
46-
4743
</project>

vertx-modules/vertx/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
</build>
6666

6767
<properties>
68-
<vertx.version>3.9.15</vertx.version>
6968
<maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
7069
</properties>
7170

web-modules/apache-tapestry/pom.xml

-8
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,13 @@
7878
<plugin>
7979
<groupId>org.apache.maven.plugins</groupId>
8080
<artifactId>maven-compiler-plugin</artifactId>
81-
<version>${compiler.plugin.version}</version>
8281
<configuration>
83-
<source>${source.version}</source>
84-
<target>${target.version}</target>
8582
<optimize>true</optimize>
8683
</configuration>
8784
</plugin>
8885
<plugin>
8986
<groupId>org.apache.maven.plugins</groupId>
9087
<artifactId>maven-surefire-plugin</artifactId>
91-
<version>${compiler.surefire.version}</version>
9288
<configuration>
9389
<systemPropertyVariables>
9490
<tapestry.execution-mode>Qa</tapestry.execution-mode>
@@ -118,7 +114,6 @@
118114
<plugin>
119115
<groupId>org.apache.maven.plugins</groupId>
120116
<artifactId>maven-war-plugin</artifactId>
121-
<version>3.3.1</version>
122117
<configuration>
123118
<archive>
124119
<manifest>
@@ -140,9 +135,6 @@
140135
<properties>
141136
<compiler.jetty.version>6.1.16</compiler.jetty.version>
142137
<compiler.surefire.version>3.0.0-M5</compiler.surefire.version>
143-
<compiler.plugin.version>3.8.1</compiler.plugin.version>
144-
<source.version>11</source.version>
145-
<target.version>11</target.version>
146138
<tapestry.version>5.8.2</tapestry.version>
147139
<servlet-api-release-version>2.5</servlet-api-release-version>
148140
<testng-release-version>6.8.21</testng-release-version>

web-modules/blade/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
<plugin>
6363
<groupId>org.apache.maven.plugins</groupId>
6464
<artifactId>maven-failsafe-plugin</artifactId>
65-
<version>${maven-failsafe-plugin.version}</version>
6665
<configuration>
6766
<skipITs>true</skipITs>
6867
<includes>

web-modules/jakarta-ee/pom.xml

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>
5-
<groupId>com.baeldung</groupId>
65
<artifactId>jakarta-ee</artifactId>
76
<version>1.0-SNAPSHOT</version>
87
<name>jakarta-ee</name>
@@ -51,7 +50,7 @@
5150
<plugin>
5251
<groupId>org.glassfish.maven.plugin</groupId>
5352
<artifactId>maven-glassfish-plugin</artifactId>
54-
<version>2.1</version>
53+
<version>${maven-glassfish-plugin.version}</version>
5554
<configuration>
5655
<glassfishDirectory>${local.glassfish.home}</glassfishDirectory>
5756
<user>admin</user>
@@ -76,11 +75,6 @@
7675
<plugin>
7776
<groupId>org.apache.maven.plugins</groupId>
7877
<artifactId>maven-compiler-plugin</artifactId>
79-
<version>3.8.0</version>
80-
<configuration>
81-
<source>11</source>
82-
<target>11</target>
83-
</configuration>
8478
</plugin>
8579
<plugin>
8680
<groupId>org.apache.maven.plugins</groupId>
@@ -104,6 +98,7 @@
10498
<local.glassfish.passfile>
10599
${local.glassfish.home}\\domains\\${local.glassfish.domain}\\config\\domain-passwords
106100
</local.glassfish.passfile>
101+
<maven-glassfish-plugin.version>2.1</maven-glassfish-plugin.version>
107102
</properties>
108103

109104
</project>

0 commit comments

Comments
 (0)