Maven local repository location for Linux and Windows

后端 未结 6 1119
后悔当初
后悔当初 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:01

    You don't do that in the POM, but in your ~/.m2/settings.xml, which would be different for both Linux and Windows, so no problem. See the localRepository element:

    
        d:\repository
        
        /media/234242342/repository
        ...
     
    

提交回复
热议问题