Packaging for Deployment

To deploy your processing pipeline to the HERE platform, first, you need to package it into a fat JAR. For specific instructions on building fat JARs, refer to your build tool's documentation.

In this section, we provide general instructions for building fat JARs with both SBT and Maven. If you are using the HERE platform Maven Archetypes to build your pipelines, you can skip this section and refer to the SDK Developer Guide instead.

NOTE: The Data Processing Library requires that each module/JAR have a reference.conf file, all of which are loaded individually. If you merge multiple JAR files into one JAR file, you also need to merge all your reference.conf files into one. If you do not, the default settings cannot be loaded and your project stops working.

If you use Maven to package your application, you can use Apache Maven Shade Plugin for Resource Transformers to merge all the reference.conf files on the classpath into one file.

Maven plugin configuration:


Similarly, SBT also provides the following plugin configurations:

// sbt plugin
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "<latest-version>")

// sbt project"examples-project"))
    mainClass in assembly := Some("project.Main"),

lazy val defaultMergeSettings = {
  assemblyMergeStrategy in assembly := {
      case PathList("com", "esotericsoftware", xs@_*) => MergeStrategy.first
      case PathList("org", "objenesis", xs@_*) => MergeStrategy.first
      case x if Assembly.isConfigFile(x) => MergeStrategy.concat
      case x =>
        val oldStrategy = (assemblyMergeStrategy in assembly).value

results matching ""

    No results matching ""