Skip to content

Commit e6ad74a

Browse files
authored
chore(maven): upgrade maven-shade-plugin to 3.6.0 (#34514)
## Current Behavior The `maven-shade-plugin` at version 3.5.0 intermittently fails on CI with: ``` Could not replace original artifact with shaded artifact! ``` This is a file-locking race condition where the plugin fails to atomically replace the original JAR with the shaded JAR. ## Expected Behavior Upgrading to 3.6.0 resolves the intermittent CI failures by using improved file-handling logic with better retry behavior during the artifact replacement step. ## Related Issue(s) N/A - fixes intermittent CI flakiness in `maven-batch-runner` builds.
1 parent 79f41e5 commit e6ad74a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/maven/batch-runner-adapters/maven3/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
</dependencies>
8888

8989
<build>
90-
<finalName>maven3-adapter</finalName>
9190
<sourceDirectory>src/main/kotlin</sourceDirectory>
9291
<plugins>
9392
<plugin>
@@ -109,14 +108,15 @@
109108
<plugin>
110109
<groupId>org.apache.maven.plugins</groupId>
111110
<artifactId>maven-shade-plugin</artifactId>
112-
<version>3.5.0</version>
111+
<version>3.6.0</version>
113112
<executions>
114113
<execution>
115114
<phase>package</phase>
116115
<goals>
117116
<goal>shade</goal>
118117
</goals>
119118
<configuration>
119+
<outputFile>${project.build.directory}/maven3-adapter.jar</outputFile>
120120
<artifactSet>
121121
<includes>
122122
<include>dev.nx.maven:nx-maven-shared</include>

packages/maven/batch-runner-adapters/maven4/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
</dependencies>
105105

106106
<build>
107-
<finalName>maven4-adapter</finalName>
108107
<sourceDirectory>src/main/kotlin</sourceDirectory>
109108

110109
<plugins>
@@ -139,14 +138,15 @@
139138
<plugin>
140139
<groupId>org.apache.maven.plugins</groupId>
141140
<artifactId>maven-shade-plugin</artifactId>
142-
<version>3.5.0</version>
141+
<version>3.6.0</version>
143142
<executions>
144143
<execution>
145144
<phase>package</phase>
146145
<goals>
147146
<goal>shade</goal>
148147
</goals>
149148
<configuration>
149+
<outputFile>${project.build.directory}/maven4-adapter.jar</outputFile>
150150
<artifactSet>
151151
<includes>
152152
<include>dev.nx.maven:nx-maven-shared</include>

packages/maven/batch-runner/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<plugin>
140140
<groupId>org.apache.maven.plugins</groupId>
141141
<artifactId>maven-shade-plugin</artifactId>
142-
<version>3.5.0</version>
142+
<version>3.6.0</version>
143143
<executions>
144144
<execution>
145145
<phase>package</phase>

packages/maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-shade-plugin</artifactId>
110-
<version>3.5.0</version>
110+
<version>3.6.0</version>
111111
</plugin>
112112

113113
<!-- Maven Flatten Plugin for publishing -->

0 commit comments

Comments
 (0)