-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
jsprit is a multi-module project and consists of:
- jsprit-core
- jsprit-analysis
- jsprit-instances
- jsprit-examples
It is hosted in this repository:
https://github.com/jsprit/mvn-rep
####Maven way To use one of these modules, add the following lines to your pom. At first, tell Maven where to find the module-artifacts, i.e. add the jsprit-repository. If you want to use snapshots, add
<repository>
<id>jsprit-snapshots</id>
<url>https://github.com/jsprit/mvn-rep/raw/master/snapshots</url>
</repository>
and for releases, add
<repository>
<id>jsprit-releases</id>
<url>https://github.com/jsprit/mvn-rep/raw/master/releases</url>
</repository>
Now tell Maven how to identify the module-artifact in this repository by adding the artifact-dependency itself:
<dependency>
<groupId>jsprit</groupId>
<artifactId>${module-name}</artifactId>
<version>${version}</version>
</dependency>
For example, if you want to use the release v1.0.0 of jsprit-core, add:
<dependency>
<groupId>jsprit</groupId>
<artifactId>jsprit-core</artifactId>
<version>1.0.0</version>
</dependency>
Add the latest snapshot to your pom.
Add the latest release to your pom.
####Jar Download If you do not want Maven to manage your dependencies, go to snapshot-jars or realease-jars to download jsprit-binaries directly. Just click on the jar-file you want to download and use the 'Raw'-button to actually download it. Put the jars into your classpath. Note that you then need to put all dependencies jsprit relies on manually to your classpath as well.
Go ahead and show me a simple example of how to setup and solve a vehicle routing problem.