Building Apache Stanbol
To build Stanbol from source you need Java 6 and maven 2.2.1 + (version as defined in the pom). You probably need also: $ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=128M
Fetch the sources from the Apache code repository
$ svn co http://svn.apache.org/repos/asf/incubator/stanbol/trunk stanbol
From the source directory run:
$ mvn clean install
Updating sources: From your Stanbol root directory call $ mvn clean
, then % svn update
and build a new version with $ mvn clean install
.
Now, several launchers should be available under the launchers/
directory:
- The "stable launcher" provides you with the most stable components only,
- the "full launcher" contains all major components available,
- the "stateless launcher" lets you work with Apache Stanbol components in offline mode and
- the "kres launcher" activates the rules machinery only.
You can launch the server with:
$ java -Xmx1g -jar full/target/org.apache.stanbol.launchers.full-0.9-SNAPSHOT.jar
Your instance is then available on http://localhost:8080. You may change the default
port number by passing a -p 9090
options to the commandline launcher. Use -h
to see more options.
Upon first startup, a folder named sling/
is created in the current folder. This folder
contains Stanbol's persistent data, deployment configuration and logs.
HTTP entry points: Web view and REST API
The web interface of your Apache Stanbol installation provides information for the main HTTP entry points. Each resource also comes with a web view that documents the matching RESTful API for applications.