简体   繁体   中英

How to create a custom .m2 folder?

I have a default .m2 folder in the location {user.dir}/.m2. The problem is here the settings.xml is configured to add jar dependencies from organisation repository url. I want to create a different .m2 folder for my personal project, where it would store dependencies from maven global repository. How to do the same?

Just change IDE setting (for IDEA) like that:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM