-
Notifications
You must be signed in to change notification settings - Fork 5
How to use
Palominos Sylvain edited this page Jul 17, 2019
·
1 revision
In order to use OrbisData libraries, you need to have at least Java8 and Groovy 2.5.7 installed.
The OrbisData libraries are available in the maven repository nexus-ng.orbisgis.org.
To add OrbisData to a Maven project, you have to declare the maven repository and to add the libraries as dependencies :
...
<dependencies>
...
<dependency>
<groupId>org.orbisgis</groupId>
<artifactId>data-manager</artifactId>
<version>Wanted Version Here</version>
</dependency>
<dependency>
<groupId>org.orbisgis</groupId>
<artifactId>process-manager</artifactId>
<version>Wanted Version Here</version>
</dependency>
...
</dependencies>
...
...
<repositories>
...
<!-- Use this repository (release) if you need the stable version -->
<repository>
<id>orbisgis-release</id>
<url>http://nexus-ng.orbisgis.org/repository/orbisgis-release</url>
</repository>
<!-- Use this repository (snapshot) if you need the unstable version -->
<repository>
<id>orbisgis-snapshot</id>
<url>http://nexus-ng.orbisgis.org/repository/orbisgis-snapshot</url>
</repository>
...
</repositories>
...
To add OrbisData to a groovy script, you have to declare the maven repository and to add the libraries as dependencies using @Grab
annotations :
// Declaration of the maven repository
@GrabResolver(name='orbisgis', root='http://nexus-ng.orbisgis.org/repository/orbisgis/')
// Grab the DataManager library
@Grab(group = 'org.orbisgis', module = 'data-manager', version = '1.0.0-SNAPSHOT')
// Grab the ProcessManager library
@Grab(group = 'org.orbisgis', module = 'process-manager', version = '1.0.0-SNAPSHOT')