Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Can i maintain two .m2 maven repositories??

Avatar

Level 9

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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