Maven use

Maven is one of the easiest ways to include DJUNITS in a Java project. The Maven files for DJUNITS reside at https://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>4.01.03</version>
  </dependency>
  ... other dependencies of your project go here ...
</dependencies>

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

Currently, the DJUNITS files are stored 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>https://djunits.org/maven</url>
  </repository>
  ... other repositories used by your project go here ...
</repositories>

Dependencies

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

  • ojalgo for vector and matrix calculations. ojAlgo has no further dependencies.
  • jakarta.annotation for manipulating annotations using java versions later than Java-8

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.

SVN Location

Source code can be checked out as an anonymous user from https://svn.tbm.tudelft.nl/DJUNITS/. The trunk with the current project (might be unstable) is at https://svn.tbm.tudelft.nl/DJUNITS/trunk. Releases can be found at https://svn.tbm.tudelft.nl/DJUNITS/release.