用mvn help:effective-settings可以查看当前生效的settings.xml: mvn -X命令可以查看settings.xml文件的读取顺序: https://blog.csdn.net/tyyking/article/details/83008533