美文网首页
Maven服务器搭建

Maven服务器搭建

作者: 翼墨 | 来源:发表于2022-09-17 09:57 被阅读0次

    2022-08-17

    1,搭建Maven服务器用到的软件。

    该软件是运行在Java 8.0上面的。
    nexus下载

    下载好后解压到指定目录下。


    image.png

    2,运行:

    前台运行:

    nexus.exe /run
    

    服务配置,计算机开机自动启动的方式

    nexus.exe /install           安装
    nexus.exe / uninstall     卸载
    nexus.exe / start             启动
    nexus.exe /stop               停止
    nexus.exe / status           状态查看
    

    3,端口号查看和修改。

    image.png

    所有访问maven仓库的地址就是http://localhost:8081/

    4,登陆和改密码

    账号是:admin
    默认密码


    image.png

    修改密码后这个文件自动消失。

    仓库

    代理仓库

    image.png
    给代理配置阿里仓库
    http://maven.aliyun.com/nexus/content/groups/public
    正式仓库和测试仓库
    正式:http://localhost:8081/repository/maven-releases/
    测试:http://localhost:8081/repository/maven-snapshots/
    image.png

    是代理仓库,正式仓库,测试仓库汇总。


    image.png

    相关文章

      网友评论

          本文标题:Maven服务器搭建

          本文链接:https://www.haomeiwen.com/subject/nrijgrtx.html