nexus 3.x
下载好之后,用cd命令切换到根目录下的bin文件,然后执行nexus.exe /run,然后访问http://localhost:8081/开始登陆
nexus 2.x
下载好后,先用管理员身份执行nexus-2.14.2-01-bundle\nexus-2.14.2-01\bin\jsw\windows-x86-64文件夹下的install-nexus.bat,后用管理员身份运行start-nexus.bat文件
登陆后即可以开始配置,用户名admin,密码admin123,登录地址:localhost:8081/nexus
先找到Views/Repositories-> Repositories,选中center,配置configuration这个tab页,将download Remote Index设置为true。
这时候,我们我们把maven下载地址配置成自己的服务器,然后配置一个maven依赖,就可以看到下载之后,Browse Remote多了一个文件了
pom中配置方式:
<repositories>
<repository>
<id>maven-public</id>
<name>maven-public</name>
<url>http://localhost:8081/repository/maven-public/</url>
</repository>
</repositories>
nexus 下载之后的文件在路径:nexus-2.14.2-01-bundle\sonatype-work\nexus\storage\central下面。