打开 https://www.sonatype.com/download-oss-sonatype 下载 nexus-2.14.4-03-bundle.tar.gz mkdir -p /home/maven-repotar xf nexus-2.14.8-01-bundle.tar.gz -C /home/maven-repo/home/maven-repo/nexus-2.14.8-01/bin/nexus start访问 http://localhost:8081/nexus账号: admin密码: admin123选择 views/repositories–>repositories选择 central选择 configuration找到其中的Download Remote Indexes,把fasle改为true在上边的中央仓库记录上点击右键,选择update index 然后在下边选中Browse Index选项卡,打开central这颗树的节点,应该能看到内容打开D:\apache-maven\conf\settings.conf,添加如下配置nexus admin admin123 找到mirrors标签,在其中添加上边的配置打开父项目的pom.xml文件,添加如下配置 nexus * http://localhost:8081/nexus/content/groups/public repo public http://localhost:8081/nexus/content/repositories/releases snapshots Snapshots http://localhost:8081/nexus/content/repositories/snapshots