Skip to content

Compiling from github

rickyepoderi edited this page Jun 22, 2013 · 28 revisions

Since 0.2 version the couchbase-manager is [mavenized] (http://maven.apache.org/) so the compilation is more or less easy but you need maven installed in your laptop (I am using now maven package from debian 3.0.4). The manager was created for glassfish v3 but in June 2013 Oracle released the new version 4.0 (JavaEE 7 reference implementation) and last commits let compile the manager for v3 or v4 versions.

Compiling the manager

The steps to compile the couchbase-manager for glassfish v3 (it uses 3.1.2.2 maven repository) are the following:

  1. Clone the repository:

    $ git clone https://github.com/rickyepoderi/couchbase-manager.git

    $ cd couchbase-manager/

  2. Compile and package the manager (this step is quite long cos a lot of dependencies are downloaded). The version for v3 is the default profile right now, so no profile is specified. Besides tests should be skipped (you need to install the manager in a glassfish server).

    $ mvn -Dmaven.test.skip=true package

  3. If you want to compile the manager for glassfish 4.0 the profile V4 should be specified in the command.

    $ mvn -P V4 -Dmaven.test.skip=true package

  4. The couchbase-manager-X.X.X.jar is generated in the target directory. Now you can install it following [the installation instructions] (wiki/Installation).

  5. For cleaning the environment just execute the clean command.

    $ mvn clean

Testing the manager

The maven file has some testing prepared but tests need some pre-configuration.

  1. The couchbase-manager should be installed inside the glassfish container (follow [the instructions] (wiki/Installation).

  2. Download and install the manager-test.war application from [here] (https://sourceforge.net/projects/couchbase-mngr/files/manager-test/). The manager by default is configured to use non-sticky configuration against a default couchbase installation in localhost.

Some informational links

How to install it?
Sticky vs Non-Sticky
[External atttibutes] (wiki/External-Attributes)
[JavaEE session listeners] (wiki/JavaEE-Session-Listeners)
[Compiling from github] (wiki/Compiling-from-github)

Versions

couchbase-manager-0.1
couchbase-manager-0.2
couchbase-manager-0.3
couchbase-manager-0.4
couchbase-manager-0.5

Clone this wiki locally