Is there a way to tell maven where to place the artifacts?

后端 未结 2 1587
野的像风
野的像风 2021-02-09 21:26

I am running both maven inside the m2eclipse plugin, windows command line and my cygwin command line.

cygwin\'s bash shell dumps artifacts into the cygwin /home/me/.m2 d

2条回答
  •  不知归路
    2021-02-09 21:51

    For Cygwin, create a file called ~/.mavenrc and put the following text inside:

    MAVEN_OPTS="-Dmaven.repo.local=c:\documents and settings\user\.m2\repository"
    export MAVEN_OPTS
    

    Alternatively, you can create the file under /etc/.mavenrc

    Another option is to create NTFS junction between .m2 under your windows and your cygwin profile.

提交回复
热议问题