The HBase Ganos API interacts with databases based on Ali-Hbase Client and GeoTools. You must configure the pom.xml file in Maven to import the corresponding packages as follows:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geomesa.version>2.1.0</geomesa.version>
<scala.abi.version>2.11</scala.abi.version>
<gt.version>18.0</gt.version>
<hbase.version>1.1.2</hbase.version>
<zookeeper.version>3.4.9</zookeeper.version>
</properties>
<dependencies>
<dependency>
<groupId>org.locationtech.geomesa</groupId>
<artifactId>geomesa-hbase-datastore_2.11</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>com.aliyun.hbase</groupId>
<artifactId>alihbase-client</artifactId>
<version>${hbase.version}</version>
<exclusions>
<exclusion>
<artifactId>com.google.guava</artifactId>
<groupId>guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.aliyun.hbase</groupId>
<artifactId>alihbase-server</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun.hbase</groupId>
<artifactId>alihbase-common</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun.hbase</groupId>
<artifactId>alihbase-protocol</artifactId>
<version>${hbase.version}</version>
</dependency>
</dependencies>
Launch the command-line tool, switch to the root of the Maven project, and run the following command to compile the project:
mvn clean install
If you can find the compiled class files and JAR packages in the target directory, the environment has been successfully built.