DJUNITS - Delft Java UNIT System version 3.00  

Maven use

Maven is one of the easiest ways to include DJUNITS in a Java project. The Maven files for DJUNITS reside at http://djunits.org/maven. When a POM-file is created for the project, the following snippet needs to be included to include DJUNITS:

<dependencies>
  <dependency>
    <groupId>org.djunits</groupId>
    <artifactId>djunits</artifactId>
    <version>3.00.00</version>
  </dependency>
</dependencies>

Of course, the version number (2.01.01 in the above example) needs to be replaced with the version that one wants to include in the project.

Right now, the DJUNITS files are kept on a server at TU Delft, and are not yet made available on Maven Central. Therefore, the repository location has to be specified separately in the Maven POM-file:

<repositories>
  <repository>
    <name>djunits Public Repository</name>
    <id>djunits</id>
    <url>http://djunits.org/maven</url>
  </repository>
</repositories>

Dependencies

DJUNITS is directly dependent on two packages, which have no further dependencies:

If the DJUNITS library is used as a part of a Maven project, all dependencies will be automatically resolved, and the programmer / user does not have to worry about finding the libraries.