Skip to content
Tilmann edited this page Oct 28, 2013 · 14 revisions

How to set-up maven dependencies

ode4j consistes of several maven artifacts.

The core artifact contains the complete physics engine:

<dependency>
    <groupId>org.ode4j</groupId>
    <artifactId>core</artifactId>
    <version>0.2.7</version>
</dependency>

If you also want the tests, demos or C-style wrapper, you get the complete project with: WARNING - THIS GUIDE IS INCOMPLETE

<dependency>
    <groupId>org.ode4j</groupId>
    <artifactId>demo</artifactId>
    <version>0.2.7</version>
</dependency>

This parent artifact contains the following sub-artifacts:

  • core: The physics engine core.
  • demo: The demos.
  • core-cpp: A C-style wrapper around the core. This resembles the API of the original ODE library. This can be useful when migrating code from C\C++ to java.
  • demo-cpp: Same as demos, but based on the core-cpp API. This also includes the JUnit tests.

Note that the demos have dependencies on lwjgl and junit. If you want to use the demos, you need to set up the mavennatives plugin.

The maven repo is hosted here.

Clone this wiki locally