How to get the Maven local repo location?

前端 未结 7 2030
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 08:26

Is there a way to get the Maven local repo location?

Using the following command you can force Maven to use a specific setting file:

 mvn -s < pat         


        
7条回答
  •  醉话见心
    2020-12-04 09:09

    For windows users

    Usually it's in: C:\Users\USER_NAME\.m2\repository.
    However the mvn help:effective-settings command will surely show the local path in response xml.

提交回复
热议问题