Skip to main content
GK-007
Level 9
May 9, 2016 2:46 PM UTC
Solved

Can i maintain two .m2 maven repositories??

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.
Peter_Puzanovs
Peter_PuzanovsAccepted solution
Community Advisor
May 9, 2016 3:39 PM UTC

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
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
May 9, 2016 3:39 PM UTC

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

Translate