Can i maintain two .m2 maven repositories?? | Community
Skip to main content
GK-007
New Participant
May 9, 2016
Solved

Can i maintain two .m2 maven repositories??

  • May 9, 2016
  • 1 reply
  • 2263 views

Hi All,

We want to upgrade our application to newer version of AEM.

I want the new version AEM should be refererred from separate .m2 repository and old one should existing AEM version.

Is this possible??

Thanks,

Kishore

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 Peter_Puzanovs

Hi Kishore,

Yes, you can do that.

Locate your settings.xml file(your config file for maven).[1]

Find line that specifies <localRepository>/change/this/path/to/new/path</localRepository>

[1] https://maven.apache.org/guides/mini/guide-configuring-maven.html

Regards,

Peter

1 reply

Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
May 9, 2016

Hi Kishore,

Yes, you can do that.

Locate your settings.xml file(your config file for maven).[1]

Find line that specifies <localRepository>/change/this/path/to/new/path</localRepository>

[1] https://maven.apache.org/guides/mini/guide-configuring-maven.html

Regards,

Peter