在Settings.xml文件(默认文件位置在:C:\Users\用户名\.m2\)中配置你的Maven的默认地址指向你的Nexus仓库,配置如下:
dev nexus 你的nexus) true false nexus (你的nexus) true false
如果有用户名密码:
nexus-releases admin admin123 nexus-snapshots admin xxx