HBASE-23337 Release scripts should rely on maven for deploy. (#887)

- switch to nexus-staging-maven-plugin for asf-release
- cleaned up some tabs in the root pom

(differs from master because there are no release scripts here.)

Signed-off-by: stack <stack@apache.org>
(cherry picked from commit 97e0107000)
This commit is contained in:
Sean Busbey 2019-12-02 06:39:24 -06:00
parent da9f6bf818
commit af2ac03e3a
1 changed files with 22 additions and 0 deletions

22
pom.xml
View File

@ -2157,6 +2157,28 @@
<argLine>${hbase-surefire.cygwin-argLine}</argLine> <argLine>${hbase-surefire.cygwin-argLine}</argLine>
</properties> </properties>
</profile> </profile>
<!-- this profile should match the name of the release profile in the root asf pom -->
<profile>
<id>apache-release</id>
<build>
<plugins>
<!-- This should insert itself in place of the normal deploy plugin and then
handle either closing or dropping the staging repository for us depending
on if the build succeeds.
-->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://repository.apache.org/</nexusUrl>
<serverId>apache.releases.https</serverId>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- this profile should be activated for release builds --> <!-- this profile should be activated for release builds -->
<profile> <profile>
<id>release</id> <id>release</id>