Linux下 nexus搭建maven私有库 自动打包
来源:互联网 发布:苹果6s怎样打开数据 编辑:程序博客网 时间:2024/05/16 06:53
首先需要安装nexus:http://www.sonatype.org/nexus/go/
执行命令解压tar包
tar zxvf nexus-2.11.3-01-bundle.tar.gz
进入解压好的目录
cd nexus-2.11.3-01
进入bin目录运行nexus
cd bin
./nexus start
关闭nexus的命令是
./nexusstop
启动成功后打开浏览器键入URL(默认端口8081,可修改)
http://localhost:8081/nexus/index.html
点击这里登陆
默认账户:admin
默认密码:admin123
http://localhost:8081/nexus/index.html
点击这里登陆
默认账户:admin
默认密码:admin123
将所有type为proxy的configuration配置选项中DownloadRemoteIndex置为True,然后点击Save保存
其中3rd party选项中可以上传第三方jar包一些maven下载不下来的,公共仓库上找不到的,就可以在3rd party中的Artifacts upload选项卡中上传jar包
新建组
将右边的Available Repositories全部拖到左边点击Save保存
将Releases仓库的Deployment Policy设置为*Allow ReDeploy
pom.xml配置
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
设置deployment账户密码
setting.xml配置
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
最后右键项目->Run As->Run Configurations双击左边选项卡的Maven Build新建一个,如图所示
最后就可以在仓库中看到打好的包
需要注意的是,当pom.xml中同时配置了releases仓库和snapshots仓库时pom.xml文件开头的版本配置<version>1.0.0-SNAPSHOT</version>
为build到snapshots库,而<version>1.0.0</version>
**不带-SNAPSHOT的会build到releases库,如果只配置了releases库而版本号写的是带-SNAPSHOT的,build到最后一步会报400错误。
- linux下 nexus搭建maven私有库 自动打包
- linux下nexus搭建maven私有库自动打包
- Linux下 nexus搭建maven私有库 自动打包
- linux下 nexus搭建maven私有库 自动打包
- nexus maven私有库搭建
- 使用nexus搭建maven的私有库
- Centos+Sonatype Nexus 搭建Maven私有库
- 利用Nexus搭建私有Maven库
- Nexus 搭建maven 私有仓库
- Nexus搭建Maven私有仓库
- Nexus搭建Maven私有仓库
- Nexus搭建私有maven仓库
- Nexus 搭建maven 私有仓库
- Linux服务器使用六:搭建自己的Sonatype Nexus Maven私有库
- 【Maven】搭建Nexus Maven私有仓库
- Linux下搭建maven服务器nexus
- Linux下使用nexus搭建maven私服
- Linux下使用nexus搭建maven私服
- spring MVC HelloWord
- Android 图片高期模糊处理
- JAVAWEB开发之JSTL标签库的使用、 自定义EL函数、自定义标签(带属性的、带标签体的)
- 脱壳-Armadillo1.x
- 值得推荐的C/C++框架和库
- Linux下 nexus搭建maven私有库 自动打包
- 5.列偏移
- 操作系统与网络实现 之二十三(乙)
- kaggle简单框架总结
- discuz使用
- Android百度地图,后台返回的坐标,设置地图中心位置,缩放比例自适应,弹出窗体等
- 蓝桥杯- 练习系统- 基础练习 特殊回文数
- P1616 疯狂的采药
- linux下查看cpu、内存和硬盘大小