nexus3添加jar包
来源:互联网 发布:电脑音乐合成器软件 编辑:程序博客网 时间:2024/05/17 03:45
一、使用最高权限登录nexus
输入默认账号:admin 密码:admin123
二、创建第三方私有maven仓库
选择导航栏的齿轮,点击左侧菜单 Repositories,点击Create repository
选择 maven2 hosted
Name 输入 3rdParty ,Hosted选择Allow redeploy,点击 Create repository
查看到 3rdParty ,创建成功!~
三、修改maven 插件
修改/conf/settings.xml文件
找到servers标签 增加
<server><!-- nexus3 --> <id>3rdParty</id> <username>admin</username> <password>admin123</password> </server>
四、jar包上传nexus
打开cmd控制台,输入如下:
mvn deploy:deploy-file -DgroupId=com.baidu.ueditor -DartifactId=ueditor -Dversion=1.1.2 -Dpackaging=jar -Dfile=D:\ueditor-1.1.2.jar -Durl=http://localhost:8081/repository/3rdParty/ -DrepositoryId=3rdParty
成功!~
对控制台输入内容的解析
<dependency> <groupId>com.baidu.ueditor</groupId> <artifactId>ueditor</artifactId> <version>1.1.2</version> </dependency>
mvn deploy:deploy-file -DgroupId=com.baidu.ueditor -DartifactId=ueditor -Dversion=1.1.2 -Dpackaging=jar -Dfile=D:\ueditor-1.1.2.jar -Durl=http://localhost:8081/repository/3rdParty/ -DrepositoryId=3rdParty
DgroupId: 对应pom.xml中 <groupId>
DartifactId: 对应pom.xml中 <artifactId>
Dversion: 对应pom.xml中 <version>
Dpackaging: 包的类型
Dfile: 包所在路径
Durl: nexus的3rdParty路径(可以在nexus中找到3rdParty私有仓库,在url列点击copy按钮)
DrepositoryId: 选择仓库
阅读全文
0 0
- nexus3添加jar包
- nexus3.3.1上传第三方jar包
- nexus3.3.1上传第三方jar包
- nexus3.3.1上传第三方jar包
- [转]nexus3.3.1上传第三方jar包
- maven 上传第三方jar包到 nexus3.4
- Nexus3.6安装、setting配置和jar包deploy
- maven 添加jar包
- android 添加jar包
- Maven添加jar包
- idea添加jar包
- maven 添加jar包
- Maven添加jar包
- Maven添加jar包
- liferay添加jar包
- 添加Jar包
- maven添加jar包
- GitHub 添加jar包
- Windows搭建Git仓库(Git+Copssh)
- 插入排序
- 文章标题
- Openssl编程获取证书common name
- ubuntu 分屏工具
- nexus3添加jar包
- Valid Palindrome
- Kotlin,来自初学者的心声
- CentOS配置之解决安装完成后无法上网
- JNI开发之环境搭建
- arm 汇编伪指令与位置相关代码
- PHP中的SPL标准类库扩展 (一) 基础知识总结
- Android面试题-如何退出Activity?如何安全退出已调用多个Activity的Application?
- Hbuilder结合git,让更改的页面标红