How to Use Private Repository on Provisioned IM Instances

It is possible to use a private repository on provisioned IM instances. The configuration is done the same way as for Maven projects.

  1. You need to use a custom image.

  2. Add your private repository settings into a Git repository settings.xml file. It is located in your branch in the folder .mvn. For details see https://maven.apache.org/guides/mini/guide-multiple-repositories.html.
    ⚠️ Do not add a username and password directly into the settings.xml file. Instead, use a placeholder:

<servers>
        <server>
            <id>myrepo</id>
            <username>${env.MAVEN_REPO_MYREPO_USER}</username>
            <password>${env.MAVEN_REPO_MYREPO_PASS}</password>
        </server>
</servers>
  1. Send the username and password to PlatformManager team and they will add it to Git variables.

  2. Add required dependencies to your pom.xml.