How to get the Maven local repo location?

前端 未结 7 2023
爱一瞬间的悲伤
爱一瞬间的悲伤 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:05

    Yes, you can get it with the -X or --debug option, e.g. mvn -X

    ...
    [DEBUG] Reading global settings from C:\Maven\conf\settings.xml
    [DEBUG] Reading user settings from C:\segphault\.m2\settings.xml
    [DEBUG] Using local repository at C:\Repo
    ...
    

提交回复
热议问题