Skip to content

Commit 53fd1c7

Browse files
committed
Add plugin configuration to maven-release-plugin
1 parent 38ec4c8 commit 53fd1c7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,19 @@
285285
<artifactId>build-helper-maven-plugin</artifactId>
286286
<version>1.5</version>
287287
</plugin>
288+
<!--This plugin configuration is present to override the configuration specified in the
289+
parent's pom.xml.
290+
This is a workaround for known bug: https://issues.sonatype.org/browse/CENTRALSRV-35 -->
291+
<plugin>
292+
<groupId>org.apache.maven.plugins</groupId>
293+
<artifactId>maven-release-plugin</artifactId>
294+
<version>2.1</version>
295+
<configuration>
296+
<mavenExecutorId>forked-path</mavenExecutorId>
297+
<useReleaseProfile>true</useReleaseProfile>
298+
<arguments>-Psonatype-oss-release ${arguments}</arguments>
299+
</configuration>
300+
</plugin>
288301
<plugin>
289302
<artifactId>maven-antrun-plugin</artifactId>
290303
<version>1.6</version>

0 commit comments

Comments
 (0)