Author: stack
Date: Wed Sep  7 06:30:56 2011
New Revision: 1166014

URL: http://svn.apache.org/viewvc?rev=1166014&view=rev
Log:
HBASE-4339 Improve eclipse documentation and project file generation

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/pom.xml
    hbase/trunk/src/docbkx/developer.xml

Modified: hbase/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1166014&r1=1166013&r2=1166014&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Wed Sep  7 06:30:56 2011
@@ -446,6 +446,8 @@ Release 0.91.0 - Unreleased
    HBASE-3842  Refactor Coprocessor Compaction API
    HBASE-4312  Deploy new hbase logo
    HBASE-4327  Compile HBase against hadoop 0.22 (Joep Rottinghuis)
+   HBASE-4339  Improve eclipse documentation and project file generation
+               (Eric Charles)
 
   TASKS
    HBASE-3559  Move report of split to master OFF the heartbeat channel

Modified: hbase/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=1166014&r1=1166013&r2=1166014&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Wed Sep  7 06:30:56 2011
@@ -586,7 +586,7 @@
             </goals>
             <configuration>
               <sources>
-                <source>${basedir}/target/jspc</source>
+                <source>${project.build.directory}/generated-jamon</source>
                 
<source>${project.build.directory}/generated-sources/java</source>
               </sources>
             </configuration>

Modified: hbase/trunk/src/docbkx/developer.xml
URL: 
http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/developer.xml?rev=1166014&r1=1166013&r2=1166014&view=diff
==============================================================================
--- hbase/trunk/src/docbkx/developer.xml (original)
+++ hbase/trunk/src/docbkx/developer.xml Wed Sep  7 06:30:56 2011
@@ -47,7 +47,8 @@ git clone git://git.apache.org/hbase.git
             <programlisting>
 mvn eclipse:eclipse
             </programlisting>
-            ... from your local HBase project directory in your workspace to 
generate a new <filename>.project</filename> file.  Then reopen Eclipse.
+            ... from your local HBase project directory in your workspace to 
generate some new <filename>.project</filename> 
+            and <filename>.classpath</filename>files.  Then reopen Eclipse.
             </section>         
             <section xml:id="eclipse.maven.plugin">
             <title>Maven Plugin</title>
@@ -66,6 +67,16 @@ Unbound classpath variable: 'M2_REPO/com
 Unbound classpath variable: 'M2_REPO/com/google/guava/guava/r09/guava-r09.jar' 
in project 'hbase'      hbase           Build path      Build Path Problem
 Unbound classpath variable: 
'M2_REPO/com/google/protobuf/protobuf-java/2.3.0/protobuf-java-2.3.0.jar' in 
project 'hbase'       hbase           Build path      Build Path Problem 
Unbound classpath variable:
             </programlisting>            
+            </section>
+            <section xml:id="eclipse.m2eclipse">
+            <title>Import via m2eclipse</title>
+            <para>If you install the m2eclipse and import the HBase pom.xml in 
your workspace, you will have to fix your eclipse Build Path.
+            Remove <filename>target</filename> folder, add 
<filename>target/generated-jamon</filename>
+            and <filename>target/generated-sources/java</filename> folders. 
You may also remove from your Build Path
+            the exclusions on the <filename>src/main/resources</filename> and 
<filename>src/test/resources</filename>
+            to avoid error message in the console 'Failed to execute goal 
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (default) on project 
hbase: 
+            'An Ant BuildException has occured: Replace: source file 
.../target/classes/hbase-default.xml doesn't exist'. This will also
+            reduce the eclipse build cycles and make your life easier when 
developing.</para>
             </section>     
             <section xml:id="eclipse.issues">
             <title>Eclipse Known Issues</title>


Reply via email to