How to get the Maven local repo location?

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

    The Maven Help plugin will show local settings, including the local repository path.

    You want the command:

    mvn help:effective-settings
    

    Output will show settings in XML format. Look for the localRepository element:

    /home/jrs/.mavenRepo
    

提交回复
热议问题