First go to Apache's official website to download the hbase1.0.1 source package
650) this.width=650; "title=" capture. PNG "alt=" wkiom1vilozztp7faaaxr_gs-ow893.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/69/wKiom1VIlOzztp7FAAAXR_ Gs-ow893.jpg "/>
Since the source package is managed with Maven, MAVEN needs to be installed
1. Install Maven
Download the installation package
650) this.width=650; "title=" capture. PNG "alt=" wkiol1vil5ghjidiaaacywtmaqa379.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/65/ Wkiol1vil5ghjidiaaacywtmaqa379.jpg "/>
Unzip the file, Maven needs the support of the JDK, configure the Java_home and PATH environment variables,
Command line input mvn-version as shown to indicate successful installation
650) this.width=650; "title=" capture. PNG "alt=" wkiol1vimnxxjmueaaefgskeaq8643.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/65/ Wkiol1vimnxxjmueaaefgskeaq8643.jpg "/>
2. Configure the local warehouse path
Open the. \apache-maven-3.3.3\conf directory under the settings.xml file, modify <localRepository> node for our custom local warehouse path (default in ${user.home}/.m2/ Repository directory)
650) this.width=650; "title=" capture. PNG "alt=" wkiol1vimjgw4mijaag0ttlaisu251.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/65/ Wkiol1vimjgw4mijaag0ttlaisu251.jpg "/>
3. Install the MAVEN plugin M2eclipse (http://www.eclipse.org/m2e/)
Click Help>install New Software ...
650) this.width=650; "title=" capture. PNG "alt=" wkiom1vinnxsli7taajteztnuma269.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/69/ Wkiom1vinnxsli7taajteztnuma269.jpg "/>
Address bar Enter http://download.eclipse.org/technology/m2e/releases to download the latest version
Restart Eclipse after installation, configure the MAVEN installation directory and the local warehouse directory (without using the plug-in built-in maven)
As shown
Window>preferences>maven>installations
650) this.width=650; "title=" capture. PNG "alt=" wkiom1vinxsqxthaaahglb9g5k4582.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/69/ Wkiom1vinxsqxthaaahglb9g5k4582.jpg "/>
Window>preferences>maven>user Settings
650) this.width=650; "title=" capture. PNG "alt=" wkiom1vioaht8mwlaaoak5sgnx4694.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/69/ Wkiom1vioaht8mwlaaoak5sgnx4694.jpg "/>
4.eclipse Import hbase Source code
File>import
650) this.width=650; "title=" capture. PNG "alt=" wkiom1violyrb4vgaafrqzldlss154.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/69/ Wkiom1violyrb4vgaafrqzldlss154.jpg "/>
Missing artifact will be reported after import jdk.toos:jdk.toos:jar:1.7
650) this.width=650; "title=" capture. PNG "style=" Float:none; "alt=" wkiom1vio3uiu5gtaaeygzcntbi948.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/69/ Wkiom1vio3uiu5gtaaeygzcntbi948.jpg "/>
650) this.width=650; "title=" Capture 1. PNG "style=" Float:none; "alt=" wkiom1vio3vzcvshaambcp4lgnw715.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/69/ Wkiom1vio3vzcvshaambcp4lgnw715.jpg "/>
Many frameworks rely on Tools.jar in the JDK, but not in the Maven repository,
How to solve this problem, only need to add the following configuration in the project's Pom.xml file, specify maven to find Tools.jar locally,
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
Plugin execution not covered by lifecycle configuration error
The reason is that Eclipse's m2e plugin is not yet supported to execution
Solution 1: The <plugins> tag is set to another <pluginManagement> tag
Span style= "Color:rgb (0,0,0);" >
<build> <pluginManagement> <plugins> <plugin> ... </plugin> <plugin> </plugin> ... </plugins> </pluginManagement></ Build>
Workaround 2:
Window-perferences-maven-lifecycle Mapping
Save the following content:
<?xml version= "1.0" encoding= "UTF-8"?>< lifecyclemappingmetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactid>aspectj-maven-plugin </artifactId> <goals> <goal>compile</goal> </goals> <versionrange>[1.3,) </versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions>< /lifecycleMappingMetadata>
Remember to click the "Reload Workspace Lifecycle Mappings Metadata" button
Problem solving.
This article is from "Skywalker, in the Cloud" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1642279
HBase Source code Import eclipse