Maven settings.xml in AEMaaCS | Community
Skip to main content
Level 4
December 13, 2022
Solved

Maven settings.xml in AEMaaCS

  • December 13, 2022
  • 2 replies
  • 3844 views

I have a requirement to pull in packages from a private maven feed.  I have added the package repository to my pom.xml files.  I have verified that this works locally and I'm able to use ~/.m2/settings.xml to authenticate against the feed.

 

How can I configure the settings.xml file to authenticate against this feed in the AEMaaCS build & deployment pipelines?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

In order to use a private Maven repository within Cloud Manager:

  1. Specify the password (and optionally, the username) as a secret pipeline variable.
  2. Then reference that secret inside a file named .cloudmanager/maven/settings.xml in the git repository

please check the link posted by @nitesh_kumar-1 

2 replies

nitesh_kumar-1
Adobe Employee
Adobe Employee
December 13, 2022

Hi @dylanmccurry ,

 

You can follow the below link and make the changes accordingly to connect to the private maven repository on Cloud Manager build.

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/create-application-project/setting-up-project.html?lang=en#password-protected-maven-repositories 

 

Regards,

Nitesh

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 13, 2022

In order to use a private Maven repository within Cloud Manager:

  1. Specify the password (and optionally, the username) as a secret pipeline variable.
  2. Then reference that secret inside a file named .cloudmanager/maven/settings.xml in the git repository

please check the link posted by @nitesh_kumar-1 

Arun Patidar
Level 4
December 13, 2022

Brilliant, thank you!

 

Is it possible to do something similar with NPM packages as well?  e.g., if we use .npmrc files for private npm repositories?

arunpatidar
Community Advisor
Community Advisor
December 13, 2022

I think this will work with .npmrc files as well.

https://www.netcentric.biz/insights/2020/08/private-repository-cloud-manager 

Arun Patidar