美文网首页
mac使用Nexus创建私服

mac使用Nexus创建私服

作者: zjl20 | 来源:发表于2021-09-29 09:30 被阅读0次

参考链接
https://blog.csdn.net/HUandroid/article/details/108594243
https://www.jianshu.com/p/c086de5e4775

1.下载nexus

https://www.sonatype.com/download-oss-sonatype

解压之后,进入bin目录,./nexus start 或者 ./nexus run 启动nexus,

然后在浏览器输入以下
http://127.0.0.1:8081/或者localhost:8081可以进入nexus的操作界面了。
建议使用google浏览器打开,部分浏览器打不开

首次登陆密码位置
/Users/apppp/Documents/nexus-mac/nexus-3.26.0-04-mac/sonatypework/nexus3/admin.password
\color{red}{登录后会要求改密码 改完密码 admin.password会被删除掉 自己保存好密码}

上传到 nexus 私服

build.gradle 根节点中添加 类似如下
//maven上传
uploadArchives {
configuration = configurations.archives
repositories {
mavenDeployer {
repository(url: 'http://172.25.36.202:8081/repository/maven-releases/') {
authentication(userName: 'admin', password: '445106774')
}

        snapshotRepository(url: 'http://172.25.36.202:8081/repository/maven-snapshots/') {
            authentication(userName: 'admin', password: '445106774')
        }

        pom.project {

// version '1.0.1'
version "1.1.1-SNAPSHOT"
artifactId 'module-message-facade'
groupId 'com.zjl.app'
packaging 'aar'
description ''
}
}
}

Android Studio 中打开右侧的 Gradle 侧边栏,打开 nexuslibrary,可以看到 uploadArchives,这就是刚才创建的上传 Task,点击即可完成上传。

相关文章

  • mac使用Nexus创建私服

    nexus是一个强大的maven仓库管理工具,它极大的简化了自己内部仓库的维护和外部仓库的访问。 1.下载nexu...

  • mac使用Nexus创建私服

    参考链接https://blog.csdn.net/HUandroid/article/details/10859...

  • Linux搭建Nexus私服

    一. 使用Docker搭建Nexus私服 1. 安装Nexus 1.1创建存放数据的位置 1.2 启动 执行以下命...

  • maven私服

    使用私服 Maven 自动打包上传到私服 Nexus 自动打包上传私服(nexus3.X版本改了很多) Repos...

  • Maven搭建私服Nexus

    一、搭建Maven私服,使用Nexus搭建1、下载Nexus,点击nexus下载,下载nexus-2.13.0-0...

  • maven

    仓库地址 : 1、http://www.sonatype.org/nexus/ 私服nexus工具使用 2、htt...

  • MAVEN中央仓库地址大全

    Maven 中央仓库地址: 1、私服nexus工具使用 http://www.sonatype.org/nexus...

  • maven中央仓库大全

    Maven 中央仓库地址: 1、私服nexus工具使用 http://www.sonatype.org/nexus...

  • 使用 Nexus 搭建 Maven 私服

    使用 Nexus 搭建 Maven 私服 一、Nexus 服务的安装 Nexus 既可以使用传统的二进制包进行安装...

  • 使用Nexus2搭建私有库

    本文梳理了一些使用Nexus搭建Maven私服的方法。Maven私服Nexus的作用,主要是为了节省资源,在内部作...

网友评论

      本文标题:mac使用Nexus创建私服

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