Files
hawkbit/extensions/hawkbit-extension-artifact-repository-mongo/README.md

1.1 KiB

Eclipse.IoT hawkBit - Artifact Repository MongoDB

HawkBit Artifact Repository is a library for storing binary artifacts and metadata into MongoDB.

Using Artifact Repository MongoDB Extension

The module contains a spring-boot autoconfiguration for easily integration into spring-boot projects. For using this extension in the hawkbit-example-application you just need to add the maven dependency.

<dependency>
  <groupId>org.eclipse.hawkbit</groupId>
  <artifactId>hawkbit-extension-artifact-repository-mongo</artifactId>
  <version>${project.version}</version>
</dependency>

If you do not have a mongoDB running you can use the the flapdoodle project to download and start a mongoDB on demand

<dependency>
  <groupId>de.flapdoodle.embed</groupId>
  <artifactId>de.flapdoodle.embed.mongo</artifactId>
  <version>${flapdoodle.version}</version>
</dependency>

Maven test execution of this module is backed by flapdoodle. In case you don't have a mongoDB and run behind a proxy you may set the JAVA_TOOL_OPTIONS as global environment variable with your proxy settings. So flapdoodle is able to download the mongoDB dependency.