Return-Path: Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: (qmail 41414 invoked from network); 17 May 2010 18:13:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 18:13:19 -0000 Received: (qmail 57261 invoked by uid 500); 17 May 2010 18:13:19 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 57166 invoked by uid 500); 17 May 2010 18:13:19 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 57159 invoked by uid 500); 17 May 2010 18:13:19 -0000 Delivered-To: apmail-hadoop-core-commits@hadoop.apache.org Received: (qmail 57156 invoked by uid 99); 17 May 2010 18:13:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 18:13:19 +0000 X-ASF-Spam-Status: No, hits=-1497.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 18:13:18 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id C1D9F16E29; Mon, 17 May 2010 18:12:57 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 17 May 2010 18:12:57 -0000 Message-ID: <20100517181257.12366.71720@eos.apache.org> Subject: =?utf-8?q?=5BHadoop_Wiki=5D_Update_of_=22Hbase/MavenPrimer=22_by_jgray?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for ch= ange notification. The "Hbase/MavenPrimer" page has been changed by jgray. The comment on this change is: Changes from the two dropped revisions from = stack/jgray. http://wiki.apache.org/hadoop/Hbase/MavenPrimer?action=3Ddiff&rev1=3D8&rev2= =3D9 -------------------------------------------------- 1. [[#oneunittest|How do I run one unit test only?]] 1. [[#starthbase|How do I do an in-situ bin/start-hbase.sh?]] 1. [[#equiv|How do I do the equivalent of an "ant clean", or "ant jar", = etc., using maven?]] + 1. [[#otherjar|How do I try out a jar that is not installed in a maven r= epository (e.g. a new zookeeper jar)?]] = <> = @@ -34, +35 @@ = IntelliJ: Built-in awesomeness. It just works. = - Eclipse: Definitely recommend the M2Eclipse plugin here: http://m2eclipse= .sonatype.org/. Or, you can have eclipse generate the {{{.classpath}}} and = {{{.project}}} for you. This works pretty well. First do {{{$ mvn install= }}}. Then do {{{$mvn eclipse:eclipse}}}. This writes the eclipse files fo= r core and each of the contribs. In eclipse, you'd open new project based = off existing sources. You will have to symlink hbase/core under your eclip= se workspace to get around eclipse complaint that projects need to be just = inside the elipse workspace. + Eclipse: Definitely recommend the M2Eclipse plugin here: http://m2eclipse= .sonatype.org/. Or, you can have eclipse generate the {{{.classpath}}} and = {{{.project}}} for you. This works pretty well. First do {{{$ mvn install= }}} or {{{$ mvn -DskipTests install}}}. Then do {{{$mvn eclipse:eclipse}}}= . This writes the eclipse files for core and each of the contribs. In ecl= ipse, you'd open new project based off existing sources. You will have to = symlink hbase/core under your eclipse workspace to get around eclipse compl= aint that projects need to be just inside the elipse workspace. = <> =3D=3D How do I just build the jars without going through a full unit tes= t cycle? =3D=3D @@ -99, +100 @@ = For more on the [[http://maven.apache.org/guides/introduction/introductio= n-to-the-lifecycle.html|mvn lifecycles...]] = + = + <> + =3D=3D How do I try out a jar that is not installed in a maven repository= (e.g. a new zookeeper jar)? =3D=3D + Here is how you'd have it use a zookeeper jar that was added to the {{{${= HBASE_HOME}/lib}}} directory. + = + Edit the core/pom.xml since its hbase core that depends on zk: + = + {{{ + Index: core/pom.xml + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + --- core/pom.xml (revision 943580) + +++ core/pom.xml (working copy) + @@ -223,6 +223,9 @@ + + org.apache.hadoop + zookeeper + + system + + + + ${basedir}/../lib/zookeeper-3.3.1.jar + + = + + @@ -277,4 +280,4 @@ + hadoop-test + + + - + \ No newline at end of file + + + }}} +=20