Search code examples
javamavenintellij-ideamaven-plugin

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?


Solution

  • Just change IDE setting (for IDEA) like that:

    enter image description here