Skip to content

Commit c7acc21

Browse files
committed
Add plugin configuration to maven-release-plugin
1 parent edf0a2d commit c7acc21

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
@@ -286,6 +286,19 @@
286286
<artifactId>maven-antrun-plugin</artifactId>
287287
<version>1.6</version>
288288
</plugin>
289+
<!--This plugin configuration is present to override the configuration specified in the
290+
parent's pom.xml.
291+
This is a workaround for known bug: https://issues.sonatype.org/browse/CENTRALSRV-35 -->
292+
<plugin>
293+
<groupId>org.apache.maven.plugins</groupId>
294+
<artifactId>maven-release-plugin</artifactId>
295+
<version>2.1</version>
296+
<configuration>
297+
<mavenExecutorId>forked-path</mavenExecutorId>
298+
<useReleaseProfile>true</useReleaseProfile>
299+
<arguments>-Psonatype-oss-release ${arguments}</arguments>
300+
</configuration>
301+
</plugin>
289302
<plugin>
290303
<artifactId>maven-assembly-plugin</artifactId>
291304
<version>2.2</version>

0 commit comments

Comments
 (0)