Skip to content

Commit bb146a9

Browse files
authored
Update Maven plugin versions (#1357)
Additionally, configure versions-maven-plugin to ignore pre-release versions and explicitly specify all plugin versions in the root pom.xml.
1 parent e75a4c8 commit bb146a9

File tree

9 files changed

+56
-34
lines changed

9 files changed

+56
-34
lines changed

milo-examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<plugin>
3939
<groupId>org.apache.maven.plugins</groupId>
4040
<artifactId>maven-deploy-plugin</artifactId>
41-
<version>3.1.1</version>
41+
<version>${maven-deploy-plugin.version}</version>
4242
<configuration>
4343
<skip>true</skip>
4444
</configuration>
@@ -50,7 +50,7 @@
5050
<plugin>
5151
<groupId>org.apache.maven.plugins</groupId>
5252
<artifactId>maven-shade-plugin</artifactId>
53-
<version>3.5.0</version>
53+
<version>${maven-shade-plugin.version}</version>
5454
<executions>
5555
<execution>
5656
<goals>

opc-ua-sdk/dtd-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<plugin>
6767
<groupId>org.codehaus.mojo</groupId>
6868
<artifactId>jaxb2-maven-plugin</artifactId>
69-
<version>3.1.0</version>
69+
<version>${jaxb2-maven-plugin.version}</version>
7070
<executions>
7171
<execution>
7272
<phase>generate-sources</phase>

opc-ua-sdk/integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<plugin>
9090
<groupId>org.apache.maven.plugins</groupId>
9191
<artifactId>maven-failsafe-plugin</artifactId>
92-
<version>3.1.2</version>
92+
<version>${maven-failsafe-plugin.version}</version>
9393
<executions>
9494
<execution>
9595
<goals>

opc-ua-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<plugin>
9595
<groupId>org.apache.maven.plugins</groupId>
9696
<artifactId>maven-shade-plugin</artifactId>
97-
<version>3.5.0</version>
97+
<version>${maven-shade-plugin.version}</version>
9898
<executions>
9999
<execution>
100100
<goals>

opc-ua-sdk/sdk-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<plugin>
7272
<groupId>org.apache.maven.plugins</groupId>
7373
<artifactId>maven-failsafe-plugin</artifactId>
74-
<version>3.1.2</version>
74+
<version>${maven-failsafe-plugin.version}</version>
7575
<executions>
7676
<execution>
7777
<goals>

opc-ua-stack/guava-dependencies/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
<plugin>
3535
<groupId>org.apache.maven.plugins</groupId>
3636
<artifactId>maven-deploy-plugin</artifactId>
37-
<version>3.1.1</version>
37+
<version>${maven-deploy-plugin.version}</version>
3838
<configuration>
3939
<skip>true</skip>
4040
</configuration>
4141
</plugin>
4242
<plugin>
4343
<groupId>org.apache.maven.plugins</groupId>
4444
<artifactId>maven-shade-plugin</artifactId>
45-
<version>3.5.0</version>
45+
<version>${maven-shade-plugin.version}</version>
4646
<executions>
4747
<execution>
4848
<phase>package</phase>

opc-ua-stack/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@
9090
<plugin>
9191
<groupId>org.apache.maven.plugins</groupId>
9292
<artifactId>maven-surefire-plugin</artifactId>
93-
<version>3.1.2</version>
93+
<version>${maven-surefire-plugin.version}</version>
9494
</plugin>
9595

9696
<plugin>
9797
<groupId>org.apache.maven.plugins</groupId>
9898
<artifactId>maven-failsafe-plugin</artifactId>
99-
<version>3.1.2</version>
99+
<version>${maven-failsafe-plugin.version}</version>
100100
<executions>
101101
<execution>
102102
<id>default-integration-test</id>
@@ -113,7 +113,7 @@
113113
<plugin>
114114
<groupId>org.apache.maven.plugins</groupId>
115115
<artifactId>maven-shade-plugin</artifactId>
116-
<version>3.5.0</version>
116+
<version>${maven-shade-plugin.version}</version>
117117
<executions>
118118
<execution>
119119
<goals>

opc-ua-stack/stack-core/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@
9191

9292
<build>
9393
<plugins>
94-
<plugin>
95-
<groupId>org.apache.maven.plugins</groupId>
96-
<artifactId>maven-compiler-plugin</artifactId>
97-
<version>3.11.0</version>
98-
<configuration>
99-
<source>17</source>
100-
<target>17</target>
101-
</configuration>
102-
</plugin>
10394
<plugin>
10495
<groupId>org.apache.maven.plugins</groupId>
10596
<artifactId>maven-surefire-plugin</artifactId>

pom.xml

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,23 @@
7070

7171
<!-- Plugin Dependency Versions -->
7272
<checkstyle.version>10.21.0</checkstyle.version>
73+
<jaxb2-maven-plugin.version>3.2.0</jaxb2-maven-plugin.version>
74+
<maven-bundle-plugin.version>6.0.0</maven-bundle-plugin.version>
7375
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
76+
<maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
77+
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
78+
<maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
79+
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
80+
<maven-failsafe-plugin.version>3.5.2</maven-failsafe-plugin.version>
81+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
82+
<maven-install-plugin.version>3.1.3</maven-install-plugin.version>
83+
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
84+
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
85+
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
86+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
87+
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
88+
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
89+
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
7490

7591
<!-- Test Dependency Versions -->
7692
<junit.version>5.10.2</junit.version>
@@ -104,15 +120,15 @@
104120
<plugin>
105121
<groupId>org.apache.maven.plugins</groupId>
106122
<artifactId>maven-jar-plugin</artifactId>
107-
<version>3.3.0</version>
123+
<version>${maven-jar-plugin.version}</version>
108124
<extensions>false</extensions>
109125
<inherited>true</inherited>
110126
</plugin>
111127

112128
<plugin>
113129
<groupId>org.apache.maven.plugins</groupId>
114130
<artifactId>maven-gpg-plugin</artifactId>
115-
<version>3.1.0</version>
131+
<version>${maven-gpg-plugin.version}</version>
116132
<executions>
117133
<execution>
118134
<id>sign-artifacts</id>
@@ -133,7 +149,7 @@
133149
<plugin>
134150
<groupId>org.sonatype.plugins</groupId>
135151
<artifactId>nexus-staging-maven-plugin</artifactId>
136-
<version>1.6.13</version>
152+
<version>${nexus-staging-maven-plugin.version}</version>
137153
<extensions>true</extensions>
138154
<configuration>
139155
<serverId>ossrh</serverId>
@@ -176,7 +192,7 @@
176192
<plugin>
177193
<groupId>org.apache.maven.plugins</groupId>
178194
<artifactId>maven-source-plugin</artifactId>
179-
<version>3.3.0</version>
195+
<version>${maven-source-plugin.version}</version>
180196
<executions>
181197
<execution>
182198
<id>attach-sources</id>
@@ -190,7 +206,7 @@
190206
<plugin>
191207
<groupId>org.apache.maven.plugins</groupId>
192208
<artifactId>maven-enforcer-plugin</artifactId>
193-
<version>3.4.0</version>
209+
<version>${maven-enforcer-plugin.version}</version>
194210
<executions>
195211
<execution>
196212
<id>enforce-maven</id>
@@ -200,7 +216,7 @@
200216
<configuration>
201217
<rules>
202218
<requireMavenVersion>
203-
<version>3.2.5</version>
219+
<version>3.6.3</version>
204220
</requireMavenVersion>
205221
</rules>
206222
</configuration>
@@ -235,14 +251,29 @@
235251
</dependency>
236252
</dependencies>
237253
</plugin>
254+
<plugin>
255+
<groupId>org.codehaus.mojo</groupId>
256+
<artifactId>versions-maven-plugin</artifactId>
257+
<version>${versions-maven-plugin.version}</version>
258+
<configuration>
259+
<ruleSet>
260+
<ignoreVersions>
261+
<ignoreVersion>
262+
<type>regex</type>
263+
<version>(?i).*[-_\.](alpha|b|beta|rc|m|ea)[-_\.]?[0-9]*</version>
264+
</ignoreVersion>
265+
</ignoreVersions>
266+
</ruleSet>
267+
</configuration>
268+
</plugin>
238269
</plugins>
239270

240271
<pluginManagement>
241272
<plugins>
242273
<plugin>
243274
<groupId>org.apache.maven.plugins</groupId>
244275
<artifactId>maven-compiler-plugin</artifactId>
245-
<version>3.11.0</version>
276+
<version>${maven-compiler-plugin.version}</version>
246277
<configuration>
247278
<source>17</source>
248279
<target>17</target>
@@ -252,7 +283,7 @@
252283
<plugin>
253284
<groupId>org.apache.maven.plugins</groupId>
254285
<artifactId>maven-jar-plugin</artifactId>
255-
<version>3.3.0</version>
286+
<version>${maven-jar-plugin.version}</version>
256287
<configuration>
257288
<archive>
258289
<manifest>
@@ -269,7 +300,7 @@
269300
<plugin>
270301
<groupId>org.apache.felix</groupId>
271302
<artifactId>maven-bundle-plugin</artifactId>
272-
<version>5.1.9</version>
303+
<version>${maven-bundle-plugin.version}</version>
273304
<executions>
274305
<execution>
275306
<id>generate-manifest</id>
@@ -297,7 +328,7 @@
297328
<plugin>
298329
<groupId>org.apache.maven.plugins</groupId>
299330
<artifactId>maven-release-plugin</artifactId>
300-
<version>3.0.1</version>
331+
<version>${maven-release-plugin.version}</version>
301332
<configuration>
302333
<autoVersionSubmodules>true</autoVersionSubmodules>
303334
<useReleaseProfile>false</useReleaseProfile>
@@ -310,17 +341,17 @@
310341
<plugin>
311342
<groupId>org.apache.maven.plugins</groupId>
312343
<artifactId>maven-clean-plugin</artifactId>
313-
<version>3.3.1</version>
344+
<version>${maven-clean-plugin.version}</version>
314345
</plugin>
315346
<plugin>
316347
<groupId>org.apache.maven.plugins</groupId>
317348
<artifactId>maven-deploy-plugin</artifactId>
318-
<version>3.1.1</version>
349+
<version>${maven-deploy-plugin.version}</version>
319350
</plugin>
320351
<plugin>
321352
<groupId>org.apache.maven.plugins</groupId>
322353
<artifactId>maven-install-plugin</artifactId>
323-
<version>3.1.1</version>
354+
<version>${maven-install-plugin.version}</version>
324355
</plugin>
325356
<plugin>
326357
<groupId>org.apache.maven.plugins</groupId>
@@ -335,7 +366,7 @@
335366
<plugin>
336367
<groupId>org.apache.maven.plugins</groupId>
337368
<artifactId>maven-surefire-plugin</artifactId>
338-
<version>3.1.2</version>
369+
<version>${maven-surefire-plugin.version}</version>
339370
</plugin>
340371
</plugins>
341372
</pluginManagement>

0 commit comments

Comments
 (0)