Expand my Community achievements bar.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Maven settings.xml in AEMaaCS

Avatar

Level 5

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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 

Arun Patidar

AEM LinksLinkedIn

View solution in original post

4 Replies

Avatar

Employee Advisor

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-... 

 

Regards,

Nitesh

Avatar

Correct answer by
Community Advisor

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 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 5

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?

Avatar

Community Advisor

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

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

Arun Patidar

AEM LinksLinkedIn