Skip to content

Commit f2370f7

Browse files
committed
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 97e0107)
1 parent d4a179f commit f2370f7

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,28 @@
23492349
<argLine>${hbase-surefire.cygwin-argLine}</argLine>
23502350
</properties>
23512351
</profile>
2352+
<!-- this profile should match the name of the release profile in the root asf pom -->
2353+
<profile>
2354+
<id>apache-release</id>
2355+
<build>
2356+
<plugins>
2357+
<!-- This should insert itself in place of the normal deploy plugin and then
2358+
handle either closing or dropping the staging repository for us depending
2359+
on if the build succeeds.
2360+
-->
2361+
<plugin>
2362+
<groupId>org.sonatype.plugins</groupId>
2363+
<artifactId>nexus-staging-maven-plugin</artifactId>
2364+
<version>1.6.8</version>
2365+
<extensions>true</extensions>
2366+
<configuration>
2367+
<nexusUrl>https://repository.apache.org/</nexusUrl>
2368+
<serverId>apache.releases.https</serverId>
2369+
</configuration>
2370+
</plugin>
2371+
</plugins>
2372+
</build>
2373+
</profile>
23522374
<!-- this profile should be activated for release builds -->
23532375
<profile>
23542376
<id>release</id>
@@ -2597,7 +2619,7 @@
25972619
<dependency>
25982620
<groupId>org.apache.hadoop</groupId>
25992621
<artifactId>hadoop-auth</artifactId>
2600-
<version>${hadoop-two.version}</version>
2622+
<version>${hadoop-two.version}</version>
26012623
<exclusions>
26022624
<exclusion>
26032625
<groupId>com.google.guava</groupId>

0 commit comments

Comments
 (0)