Skip to content

Commit 22b7cf7

Browse files
author
Eugen Paraschiv
committed
plugin cleanup
1 parent b3b91b9 commit 22b7cf7

File tree

9 files changed

+23
-43
lines changed

9 files changed

+23
-43
lines changed

bootique/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,21 @@
5252

5353
<build>
5454
<plugins>
55+
5556
<plugin>
5657
<groupId>org.apache.maven.plugins</groupId>
5758
<artifactId>maven-shade-plugin</artifactId>
59+
<version>${maven-shade-plugin.version}</version>
5860
</plugin>
61+
5962
</plugins>
6063
</build>
6164

6265
<properties>
6366
<main.class>com.baeldung.bootique.App</main.class>
6467
<bootique-bom.version>0.23</bootique-bom.version>
68+
69+
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
6570
</properties>
6671

6772
</project>

core-java-8/pom.xml

-13
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,6 @@
128128
</executions>
129129
</plugin>
130130

131-
<plugin>
132-
<groupId>org.apache.maven.plugins</groupId>
133-
<artifactId>maven-jar-plugin</artifactId>
134-
<configuration>
135-
<archive>
136-
<manifest>
137-
<addClasspath>true</addClasspath>
138-
<classpathPrefix>libs/</classpathPrefix>
139-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
140-
</manifest>
141-
</archive>
142-
</configuration>
143-
</plugin>
144131
<plugin>
145132
<groupId>org.apache.maven.plugins</groupId>
146133
<artifactId>maven-compiler-plugin</artifactId>

core-java-concurrency/pom.xml

-13
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,6 @@
7575
</execution>
7676
</executions>
7777
</plugin>
78-
<plugin>
79-
<groupId>org.apache.maven.plugins</groupId>
80-
<artifactId>maven-jar-plugin</artifactId>
81-
<configuration>
82-
<archive>
83-
<manifest>
84-
<addClasspath>true</addClasspath>
85-
<classpathPrefix>libs/</classpathPrefix>
86-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
87-
</manifest>
88-
</archive>
89-
</configuration>
90-
</plugin>
9178

9279
</plugins>
9380
</build>

core-java-sun/pom.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
<plugin>
186186
<groupId>org.apache.maven.plugins</groupId>
187187
<artifactId>maven-jar-plugin</artifactId>
188+
<version>${maven-jar-plugin.version}</version>
188189
<configuration>
189190
<archive>
190191
<manifest>
@@ -295,6 +296,7 @@
295296
<protonpack.version>1.13</protonpack.version>
296297
<streamex.version>0.6.5</streamex.version>
297298
<vavr.version>0.9.0</vavr.version>
299+
<spring-web.version>4.3.4.RELEASE</spring-web.version>
298300

299301
<!-- testing -->
300302
<assertj.version>3.6.1</assertj.version>
@@ -303,7 +305,7 @@
303305
<!-- maven plugins -->
304306
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
305307
<sun-tools.version>1.8.0</sun-tools.version>
306-
<spring-web.version>4.3.4.RELEASE</spring-web.version>
308+
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
307309
</properties>
308310

309311
</project>

disruptor/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<plugin>
5656
<groupId>org.apache.maven.plugins</groupId>
5757
<artifactId>maven-jar-plugin</artifactId>
58+
<version>${maven-jar-plugin.version}</version>
5859
<configuration>
5960
<archive>
6061
<manifest>
@@ -91,6 +92,7 @@
9192
<plugin>
9293
<groupId>org.apache.maven.plugins</groupId>
9394
<artifactId>maven-shade-plugin</artifactId>
95+
<version>${maven-shade-plugin.version}</version>
9496
<executions>
9597
<execution>
9698
<goals>
@@ -133,6 +135,9 @@
133135
<!-- testing -->
134136
<testng.version>6.10</testng.version>
135137
<assertj.version>3.6.1</assertj.version>
138+
139+
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
140+
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
136141
</properties>
137142

138143
</project>

java-numbers/pom.xml

-15
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,6 @@
100100
</executions>
101101
</plugin>
102102

103-
<plugin>
104-
<groupId>org.apache.maven.plugins</groupId>
105-
<artifactId>maven-jar-plugin</artifactId>
106-
<version>${maven-jar-plugin.version}</version>
107-
<configuration>
108-
<archive>
109-
<manifest>
110-
<addClasspath>true</addClasspath>
111-
<classpathPrefix>libs/</classpathPrefix>
112-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
113-
</manifest>
114-
</archive>
115-
</configuration>
116-
</plugin>
117-
118103
<plugin>
119104
<groupId>org.apache.maven.plugins</groupId>
120105
<artifactId>maven-javadoc-plugin</artifactId>

jmh/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-jar-plugin</artifactId>
36+
<version>${maven-jar-plugin.version}</version>
3637
<configuration>
3738
<archive>
3839
<manifest>
@@ -46,6 +47,7 @@
4647

4748
<properties>
4849
<openjdk.jmh.version>1.19</openjdk.jmh.version>
50+
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
4951
</properties>
5052

5153
</project>

jooby/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<plugin>
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-shade-plugin</artifactId>
47+
<version>${maven-shade-plugin.version}</version>
4748
</plugin>
4849
</plugins>
4950
</build>
@@ -52,6 +53,8 @@
5253
<jooby.version>1.1.3</jooby.version>
5354
<application.class>com.baeldung.jooby.App</application.class>
5455
<jooby-jedis.version>1.1.3</jooby-jedis.version>
56+
57+
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
5558
</properties>
5659

5760
</project>

undertow/pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
55
<groupId>com.baeldung.undertow</groupId>
66
<artifactId>undertow</artifactId>
77
<packaging>jar</packaging>
@@ -29,6 +29,7 @@
2929
<plugin>
3030
<groupId>org.apache.maven.plugins</groupId>
3131
<artifactId>maven-shade-plugin</artifactId>
32+
<version>${maven-shade-plugin.version}</version>
3233
<executions>
3334
<execution>
3435
<phase>package</phase>
@@ -41,6 +42,7 @@
4142
<plugin>
4243
<groupId>org.apache.maven.plugins</groupId>
4344
<artifactId>maven-jar-plugin</artifactId>
45+
<version>${maven-jar-plugin.version}</version>
4446
<configuration>
4547
<archive>
4648
<manifest>
@@ -54,6 +56,8 @@
5456

5557
<properties>
5658
<undertow-servlet.version>1.4.18.Final</undertow-servlet.version>
59+
<maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>
60+
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
5761
</properties>
5862

5963
</project>

0 commit comments

Comments
 (0)