It is possible to use a private repository on provisioned IM instances. The configuration is done the same way as for Maven projects.
-
You need to use a custom image.
-
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>
-
Send the username and password to PlatformManager team and they will add it to Git variables.
-
Add required dependencies to your pom.xml.