`-DskipTests` is the standard Maven "ism" to skip tests. Your output
appears to indicate that you were running tests, so perhaps your
invocation was incorrect? You've not provided enough information for us
to know why exactly your build failed.
You do not have to build HBase from source in order to build an
application. Every official release which this project creates has
artifacts which are published in Maven Central for you to consume directly.
One final note: you are building from the master branch (3.0.0-SNAPSHOT)
which is still under development. I'd suggest that you add a dependency
in your application to the Maven dependency
org.apache.hbase:hbase-client for the version of HBase that you are
actually running.
If you do not yet have a HBase which is already running, you can
download a pre-built release from
https://hbase.apache.org/downloads.html. Be sure to grab a version of
Hadoop which is compatible with the HBase release which you are running.
On 1/29/21 8:54 AM, richard t wrote:
hi,
my ultimate goal is to have a basic CRUD client to hbase using the java api.
in trying to get there, I downloaded the source for hbase 3.0.0 because of the
client source and wanted to build this client and test it against my hbase
instance that is running.
the hbase source is not building due to this error:BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:03 min
[INFO] Finished at: 2021-01-28T11:22:12-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on
project hbase-http: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/rtkatch/Downloads/hbase-src/hbase-master/hbase-http/target/surefire-reports
for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
I have tried to run with -DskipTests but this error seems to be persistent.I am
using maven 3.6.3. compiling with openjdk 1.8
I had found some information where one can set up configuration in the pom to
skip tests, so I will try to set that up.
Any information on this would be much appreciated.
One other comment, I just don't understand why one has to build everything just
to get a test client... there really should be a bundle that contains only the
stuff needed to connect to the hbase. I noticed that there were different
archetypes but am not sure how to use them other than copying them to my dev
directory for use.
thanks!