-
Notifications
You must be signed in to change notification settings - Fork 64
MrGeo Build Dependencies
MrGeo uses Maven to download most dependencies from standard repositories. There are some dependencies, however, not available in the standard repositories, and some dependencies are not available in any repository.
The following steps make these dependencies available to Maven when building MrGeo.
-
Install GDAL version 1.9.2 or later on your system including the Java bindings. If you are using GDAL earlier than 1.11.1, locate the gdal.jar file after the installation is done and add it to your local maven repo:
mvn install:install-file -Dfile=<PATH-TO_GDAL.JAR> -DgroupId=org.gdal -DartifactId=gdal -Dversion=<GDAL VERSION> -Dpackaging=jar -DlocalRepositoryPath=<PATH-TO-SPECIFIC-LOCAL-REPO>
-
Install OpenCV version 2.4.9 or later, including the Java bindings. This can be done either by using apt-get/yum or building from source and installing. If you are using version 2.4.9, you're done, otherwise, you'll need to load the jar to your local maven repo using a typical mvn install:install-file command.
-
There is also a custom Maven plugin, pomtools-maven-plugin, v. 0.2.1, the team built to make discovering jars easier.
Due to breaking API changes between maven 3.0.x and 3.1.x, there are two versions of this plugin.
If you are using Maven version 3.1.x and above, you don't need to do anything, the plugin will be automatically downloaded during the build.
If you are using Maven 3 prior to 3.1.x, you will need to add
-Dpomtools-maven.version=0.2.0
to your build command
For some reason, Cloudera has left out the spark_yarn_2.10 jar from its CDH5.3.x maven repos. They do exist in previous and more recent versions. To get around the problem, I had to download the spark release from Cloudera (located at http://archive.cloudera.com/cdh5/cdh/5/, specifically http://archive.cloudera.com/cdh5/cdh/5/spark-1.2.0-cdh5.3.2.tar.gz for CDH5.3.2). Unpacking the tar contains all the spark jars. Then take the spark_yarn_2.10 and load it into your local maven repo using a typical mvn install:install-file command.
See #18
When building MrGeo with the optional GeoWave data provider support included, you need to make sure the GeoWave artifacts and dependencies are available. As of this writing, GeoWave is not available in maven central, however it is expected to become available in maven central in the future.
If it is not in maven central when you build, then you will have to build and deploy GeoWave from source. Follow the build instructions at http://locationtech.github.io/geowave/devguide.html#building-code and install it into your local maven repository.