nexus 使用Nexus搭建Maven私服

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中配置方式:



maven-public
maven-public
http://localhost:8081/repository/maven-public/


nexus 下载之后的文件在路径:nexus-2.14.2-01-bundle\sonatype-work\nexus\storage\central下面。


你可能感兴趣的:(Web开发管理)