Maven local repository location for Linux and Windows

后端 未结 6 1093
后悔当初
后悔当初 2021-02-02 09:26

I have a dual boot system with Windows and Linux. I have another partition which is visible to both Windows and Linux. I want to put my local repository there. How can I provide

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 10:02

    Each OS needs an M2_HOME as per the Maven documentation. Inside $M2_HOME/conf/ you can put a settings.xml file and in that you can specify the location for the local repository using the element.

    So for your specific system, in Windows use

    d:\repository
    

    and in Linux

    /media/234242342/repository
    

提交回复
热议问题