Skip to content

Commit 232e774

Browse files
committed
Add plugin configuration to maven-release-plugin
1 parent 6afa04a commit 232e774

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
@@ -305,6 +305,19 @@
305305
<arguments>-Psonatype-oss-release ${arguments}</arguments>
306306
</configuration>
307307
</plugin>
308+
<!--This plugin configuration is present to override the configuration specified in the
309+
parent's pom.xml.
310+
This is a workaround for known bug: https://issues.sonatype.org/browse/CENTRALSRV-35 -->
311+
<plugin>
312+
<groupId>org.apache.maven.plugins</groupId>
313+
<artifactId>maven-release-plugin</artifactId>
314+
<version>2.1</version>
315+
<configuration>
316+
<mavenExecutorId>forked-path</mavenExecutorId>
317+
<useReleaseProfile>true</useReleaseProfile>
318+
<arguments>-Psonatype-oss-release ${arguments}</arguments>
319+
</configuration>
320+
</plugin>
308321
<plugin>
309322
<artifactId>maven-antrun-plugin</artifactId>
310323
<version>1.6</version>

0 commit comments

Comments
 (0)