-
-
Notifications
You must be signed in to change notification settings - Fork 99
Building deegree3
This page describes how to build deegree3 from the command line.
- Compatible JDK (OpenJDK 8, Oracle Java 8)
- Apache Maven 3.0.5 or higher
- Git 1.7 or higher
- (optional) Sphinx 1.5 or higher for building the handbook
First, you will need to clone the deegree3 repository. On the command line, change to a suitable directory and enter:
git clone git://github.com/deegree/deegree3.git
You'll probably want to fork the deegree3 repository and clone your fork instead (just replace the deegree part with your GitHub username).
Now, change to the deegree3
directory and check out the version that you want to build, e.g.
git checkout 3.3-master
Hint: Use git checkout master
to get the latest development version. Use git tag
to find out all tags (versions) that can be checked out. The following command shows the list of all tags:
git tag | grep "^deegree-[0-9].*\|^[0-9]." | sort
Pick a tag and enter:
git checkout tags/deegree-3.4-RC2
Invoke Maven to start the build process:
mvn install
This will build deegree-webservices and all dependent deegree3 modules. You can find the deegree-webservices artifacts in deegree-services/deegree-webservices/target
.
The are several Maven profiles available to modify the build process, e.g. use
mvn install -Poracle,mssql
to enable support for Oracle Spatial and Microsoft SQL Server.
Here's a full list of available Maven profiles:
- handbook: builds the deegree webservices handbook
- integration-tests: runs integration tests (these take a couple of minutes)
- mssql: builds the MSSQL Server SQL dialect
- oracle: builds the Oracle SQL dialect
To show all available profiles use
mvn help:all-profiles | grep 'Profile Id' | sort -u
In order to check if your code changes compile correctly and do not break any existing functionality, perform a clean build and run the integrations tests:
mvn clean install -Pintegration-tests
To build the API documentation run:
export MAVEN_OPTS="-Xmx2g" (Linux/Mac)
SET MAVEN_OPTS="-Xmx2g" (Windows)
mvn javadoc:javadoc
# or to build the complete Maven site:
mvn site
To deploy the site use:
mvn site-deploy
Proceed with setting up deegree local working copy in your IDE.