Maven local repository location for Linux and Windows

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

    Can't you just define both locations as separate repositories and let maven use the available one?

    Or symlink /media/234242342/repository to /repository and use this path for both builds.

    Also, have a look at maven profiles, it might be helpful!

提交回复
热议问题