jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Jackrabbit: Building Jackrabbit (page edited)
Date Tue, 19 Feb 2008 18:18:00 GMT
Building Jackrabbit (JCR) edited by Jukka Zitting
      Page: http://cwiki.apache.org/confluence/display/JCR/Building+Jackrabbit
   Changes: http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=70734&originalVersion=1&revisedVersion=2






Content:
---------------------------------------------------------------------

The easiest way to use Jackrabbit is to [download|http://jackrabbit.apache.org/download.cgi]
a binary release, but if you want to access the latest development version, you need to get
the Jackrabbit sources and build them using the [Maven 2|http://maven.apache.org/] build environment.

The first step in building Jackrabbit is to check out the Jackrabbit sources from the [Subversion|http://subversion.tigris.org/]
source repository at [http://svn.apache.org/repos/asf/jackrabbit/]. The source tree is divided
in standard parts: [trunk|http://svn.apache.org/repos/asf/jackrabbit/trunk/], [branches|http://svn.apache.org/repos/asf/jackrabbit/branches/],
and [tags|http://svn.apache.org/repos/asf/jackrabbit/tags/]. The latest development version
is found within trunk, while the other parts are used to keep track of the source code of
the Jackrabbit releases.

The trunk contains the top-level build environment and a number of component projects within
subdirectories. See the README.txt files within each subdirectory for a brief description
of the component project. There is also a [contrib|http://svn.apache.org/repos/asf/jackrabbit/trunk/contrib/]
directory with miscellaneous contributions that are not yet a part of the official Jackrabbit
releases.


h2. Checking out the sources with Subversion

You need a [Subversion|http://subversion.tigris.org/] client to access the Jackrabbit source
repository. Take a look at the [Subversion client list|http://subversion.tigris.org/project_links.html#clients]
unless you already have a one installed. Once you have the Subversion client installed you
can checkout the main Jackrabbit source tree with the following command or its equivalent
in the client you are using:
{code}
svn checkout http://svn.apache.org/repos/asf/jackrabbit/trunk jackrabbit
{code}
The above checkout will create a subdirectory named jackrabbit that contains the latest Jackrabbit
sources. See the [Subversion book|http://svnbook.red-bean.com/] or the documentation of your
Subversion client for more information on how to manage your source tree and keep it up to
date with latest development.


h2. Building the sources with Maven

Jackrabbit uses [Maven 2|http://maven.apache.org/] as the build system and the component sources
are mostly organized according to the Maven [Standard Directory Layout|http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html].
The standard build environment is Maven 2 with the Java Development Kit (JDK) 1.4, but the
build is known to work also with Java 5 and 6.

See the [Running Maven|http://maven.apache.org/run-maven/index.html] page and the related
documentation on the Maven web site for instructions on how to use Maven. You may also want
to check for Maven 2 integration with your favourite Integrated Development Environment (IDE).

There are Maven project descriptors (POMs) within both the top level jackrabbit directory
you checked out above and all the jackrabbit\-_something_ component subdirectories. The easiest
way to build Jackrabbit is to use the "multimodule" setup within the top level directory:
{code}
$ cd /path/to/jackrabbit; mvn install
{code}
This will build and package all the component projects and place the resulting artifacts within
your local Maven 2 repository. You can also find the artifacts within the created target subdirectories
of the component projects.

---------------------------------------------------------------------
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence



Mime
View raw message