将本地jar包上传至Nexus

其实上传jar包到Nexus有好几种方法,这里先来介绍一种比较简单的方法:

1.首先登陆私服:

2.点击左边“Repositories”,选中“3rd party” 上传本地jar包(第四步除了jar格式外,都可根据需要自行修改):

3. 点击头部Refresh按钮,检查是否上传成功,如下图表示上传成功:

4.本地pom.xml文件添加依赖:

<!--添加引用-->
<dependency>
        <groupId>com.xxxx.itoo</groupId>
        <artifactId>tool </artifactId>
        <version>1.0</version>
</dependency>

猜你喜欢

转载自blog.csdn.net/qq_39071599/article/details/106742056