Maven settings.xml in AEMaaCS | Adobe Higher Education
Skip to main content
Level 4
December 13, 2022
解決済み

Maven settings.xml in AEMaaCS

  • December 13, 2022
  • 2 の返信
  • 3844 ビュー

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?

このトピックへの返信は締め切られました。
ベストアンサー 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 の返信

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
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
dylanmccurry作成者
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