hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "Hbase/MavenPrimer" by stack
Date Wed, 12 May 2010 06:39:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hbase/MavenPrimer" page has been changed by stack.
http://wiki.apache.org/hadoop/Hbase/MavenPrimer?action=diff&rev1=4&rev2=5

--------------------------------------------------

   1. [[#javadoc|How do I build javadoc only?]]
   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?]]
  
  <<Anchor(whatdoineed)>>
  
@@ -79, +80 @@

  
  == How do I do an in-situ bin/start-hbase.sh? ==
  
- To get around '''java.lang.ClassNotFoundException''' when you run '''${HBASE_HOME}/bin/start-hbase.sh'''
in-situ -- i.e. you are trying to run hbase in-place from where you did your checkout -- 
do the following:
+ To get around {{{java.lang.ClassNotFoundException}}} when you run {{{${HBASE_HOME}/bin/start-hbase.sh}}}
in-situ -- i.e. you are trying to run hbase in-place from where you did your checkout -- 
do the following:
  
+ {{{
-  * $ mvn install # Pass -DskipTests if you'd avoid running tests. Install is needed to get
hbase jars into mvn local repo under ~/.m2
+ $ mvn install # Pass -DskipTests if you'd avoid running tests. Install is needed to get
hbase jars into mvn local repo under ~/.m2
-  * $ HBASE_CLASSPATH=`mvn -q dependency:build-classpath -Dmdep.outputFile="/tmp/cp.txt";
cat "/tmp/cp.txt"` ./bin/start-hbase.sh
+ $ HBASE_CLASSPATH=`mvn -q dependency:build-classpath -Dmdep.outputFile="/tmp/cp.txt"; cat
"/tmp/cp.txt"` ./bin/start-hbase.sh
+ }}}
  
+ <<Anchor(equiv)>>
  
+ == How do I do the equivalent of an "ant clean", or "ant jar", etc., using maven? ==
+ 
+ ||ant clean||mvn clean # Run mvn -q clean to have it run quietly||
+ ||ant compile||mvn compile||
+ ||ant jar||mvn -DskipTests install # Mvn by default runs tests before it makes jar as opposed
to ant which does jar first.  Both go down into contrib dirs and build jars down in there
too.  Mvn will actually install the jars into your local mvn repo.  This is probably what
you want if you want to go on to run hbase||
+ ||ant test||mvn test||
+ ||ant test -Dtestcase=TestClient||mvn test -Dtest=TestClient||
+ 
+ For more on the [[http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html|mvn
lifecycles...]]
+ 

Mime
View raw message