Integration with Maven

Andreas Rudolph edited this page Jul 29, 2017 · 23 revisions

Integration with Maven

The following page describes how to integrate OpenEstate-IS24-REST into your Maven project.

Register the repository

Every stable release of OpenEstate-IS24-REST is published at the Maven Central Repository. Therefore you don't need to configure any repositories in your Maven settings.

In order to get latest development snapshots of OpenEstate-IS24-REST, you need to register the following repository in your settings.xml / pom.xml:

<repositories>
  <repository>
    <id>ossrh</id>
    <name>Open Source Project Repository Hosting</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <snapshots>
      <enabled>true</enabled>
      <checksumPolicy>fail</checksumPolicy>
    </snapshots>
  </repository>
</repositories>

Add dependencies

Add the following dependency to your project's pom.xml at minimum:

<dependency>
  <groupId>org.openestate.is24</groupId>
  <artifactId>OpenEstate-IS24-REST</artifactId>
  <version>0.4</version>
</dependency>

In order to use Apache HttpComponents 4.2 for HTTP communication, you also need the following dependency in your project's pom.xml:

<dependency>
  <groupId>org.openestate.is24</groupId>
  <artifactId>OpenEstate-IS24-REST-hc42</artifactId>
  <version>0.4</version>
</dependency>

In order to use Apache HttpComponents 4.3 for HTTP communication, you also need the following dependency in your project's pom.xml:

<dependency>
  <groupId>org.openestate.is24</groupId>
  <artifactId>OpenEstate-IS24-REST-hc43</artifactId>
  <version>0.4</version>
</dependency>

Happy coding

From now on you can use OpenEstate-IS24-REST within your application. Have a look at the usage page for some example code.