You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2021/10/26 21:04:00 UTC

[jira] [Created] (HBASE-26399) branch-2 modules dependencies are confused

Mike Drob created HBASE-26399:
---------------------------------

             Summary: branch-2 modules dependencies are confused
                 Key: HBASE-26399
                 URL: https://issues.apache.org/jira/browse/HBASE-26399
             Project: HBase
          Issue Type: Task
          Components: build
    Affects Versions: 2.5.0
         Environment: branch-2

Java version: 11.0.12

Apache Maven 3.8.3
            Reporter: Mike Drob


When trying to build branch-2, I get several dependency resolution issues. Different issues based on what approach I try.

 

{{mvn -e -B --no-transfer-progress -Dhadoop.profile=3.0 -Dhadoop-three.version=3.0.0-cdh6.3.2 clean install -Dmaven.test.skip=true}}

will fail with:
{noformat}
231.4 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (hadoop-profile-min-maven-min-java-banned-xerces) on project hbase-build-configuration: Execution hadoop-profile-min-maven-min-java-banned-xerces of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed: org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException: Could not resolve following dependencies: [org.apache.hbase:hbase-annotations:jar:tests:2.5.0-SNAPSHOT (test)]: Could not resolve dependencies for project org.apache.hbase:hbase-build-configuration:pom:2.5.0-SNAPSHOT: Could not find artifact org.apache.hbase:hbase-annotations:jar:tests:2.5.0-SNAPSHOT in snapshots{noformat}
Note that I'm running this behind a corporate firewall, so if there is a snapshot available upstream in apache snapshots repo, then I'm not able to access it. I would have thought that it can use the locally built and installed one instead, since build-configuration does correctly come after annotations.

 

If I change to {{-DskipTests}} then this target succeeds, but later {{mvn site}} fails with
{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project hbase: Error generating maven-javadoc-plugin:3.2.0:aggregate-no-fork report:
[ERROR] Exit code: 1 - /home/jenkins-agent/hbase/hbase-testing-util/src/main/java/org/apache/hadoop/hbase/testing/TestingHBaseClusterOption.java:24: error: cannot find symbol
[ERROR] import org.apache.hadoop.hbase.StartMiniClusterOption;
[ERROR]                               ^
[ERROR]   symbol:   class StartMiniClusterOption
[ERROR]   location: package org.apache.hadoop.hbase {noformat}
Again, I'm missing testing packages, this time for javadocs.

 

I believe I was getting similar errors on main branch, although I don't have logs for that anymore.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)