Maven command to determine which settings.xml file Maven is using

前端 未结 6 1855
余生分开走
余生分开走 2020-11-30 16:54

How do I use maven command line to determine which settings.xml file Maven is picking up?

6条回答
  •  情深已故
    2020-11-30 17:39

    Start maven with -X option (debug) and examine the beginning of the output. There should be something like this:

    ...
    [INFO] Error stacktraces are turned on.
    [DEBUG] Reading global settings from c:\....\apache-maven-3.0.3\conf\settings.xml
    [DEBUG] Reading user settings from c:\....\.m2\settings.xml
    [DEBUG] Using local repository at C:\....\repository
    ...
    

    (Original directory names are removed by me)

提交回复
热议问题