Differences between revisions 4 and 5
Revision 4 as of 2013-10-22 07:51:52
Size: 1774
Editor: HyunsikChoi
Comment:
Revision 5 as of 2014-03-06 04:57:19
Size: 0
Editor: HyunsikChoi
Comment: moved to new doc.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Build Requirements ==

 * Unix System
 * Java 1.6 or higher
 * Protocol Buffers 2.4.1
 * Maven 3.0 or higher
 * Internet connection for first build (to fetch all Maven and Tajo dependencies)

== Maven main modules ==
{{{
 tajo (Main Tajo project)
    |----- tajo-project (Parent POM for all Tajo Maven modules. )
    | (All plugins & dependencies versions are defined here.)
    |------ tajo-common
    |------ tajo-catalog
    |------ tajo-core
    |------ tajo-rpc
    |------ tajo-algebra
    |------ tajo-dist (Tajo distribution assembler)
}}}

== Building Tajo from Source ==

Download the source code from the git repository as follows:

{{{
$ git clone http://git-wip-us.apache.org/repos/asf/incubator-tajo.git
}}}

Then, you can execute maven with the following goals:

 * Clean : mvn clean
 * Compile : mvn compile
 * Run tests : mvn test
 * Run integrating tests : mvn verify
 * Create JAR : mvn package
 * Run findbugs : mvn compile findbugs:findbugs
 * Install JAR in M2 cache : mvn install
 * Build distribution : mvn package [-Pdist][-Dtar]

=== Build options: ===

 * Use -Dtar to create a TAR with the distribution (using -Pdist)

=== Tests options: ===

Use -DskipTests to skip tests when running the following Maven goals:
 * 'package', 'install', 'deploy' or 'verify'
 * -Dtest=TESTCLASSNAME,TESTCLASSNAME#METHODNAME,....
 * -Dtest.exclude=TESTCLASSNAME
 * -Dtest.exclude.pattern=**/TESTCLASSNAME1.java,**/TESTCLASSNAME2.java

If you want a tarball distribution, execute the following commands

{{{
$ cd tajo-x.y.z
$ mvn clean package -DskipTests -Pdist -Dtar
$ ls tajo-dist/target/tajo-x.y.z-SNAPSHOT.tar.gz
}}}