[ 
https://issues.apache.org/jira/browse/HBASE-27359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17620064#comment-17620064
 ] 

Duo Zhang commented on HBASE-27359:
-----------------------------------

I think using $revision can partly solve our problems here.

https://stackoverflow.com/questions/10582054/maven-project-version-inheritance-do-i-have-to-specify-the-parent-version

https://maven.apache.org/maven-ci-friendly.html

We could change to use $revision to define our version too. And when we want to 
publish hadoop3 artifacts, the command line will be like this

{noformat}
mvn clean install -DskipTests -Dhadoop.profile=3.0 
-Drevision=2.6.0-hadoop3-SNAPSHOT
{noformat}

With flatten maven plugin, the generated pom can have the correct versions. 
This is the generated pom for hbase-common

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd"; 
xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.hbase</groupId>
  <artifactId>hbase-common</artifactId>
  <version>2.6.0-hadoop3-SNAPSHOT</version>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <dependencies>
    <dependency>
      <groupId>org.apache.hbase</groupId>
      <artifactId>hbase-logging</artifactId>
      <version>2.6.0-hadoop3-SNAPSHOT</version>
      <scope>compile</scope>
    </dependency>
{noformat}

Let me reply on the mailing list about this. I think we can first land to 
revision change, and then discuss how to better publish artifacts. For example, 
default to hadoop2 and publish a hadoop3 artifacts, or even publish artifacts 
for different minor hadoop release lines, for example, 2.6.0-hadoop3.2, 
2.6.0-hadoop3.3, etc.

Thanks.

> Publish binaries and maven artifacts for both hadoop2 and hadoop3
> -----------------------------------------------------------------
>
>                 Key: HBASE-27359
>                 URL: https://issues.apache.org/jira/browse/HBASE-27359
>             Project: HBase
>          Issue Type: Improvement
>          Components: build, community, pom, scripts
>            Reporter: Duo Zhang
>            Priority: Major
>             Fix For: 2.5.2, 2.4.16
>
>
> As per the discussion in this thread
> https://lists.apache.org/thread/y05gspk4mnxsz6nk7hc5ots8wt50366b
> And this is possible after we land HBASE-27340.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to