nexus搭建maven私服
来源:互联网 发布:钢材期货软件 编辑:程序博客网 时间:2024/06/05 00:25
从官网http://www.sonatype.org/nexus/go下载nexus安装包(例如:nexus-2.14.3-02-bundle.zip)
解压缩后进入 盘符:\nexus-2.14.3-02-bundle\nexus-2.14.3-02\bin\jsw中选择相应的系统安装文件夹这里我选择window-x86-64位的
进入window-x86-64中,有以下几个文件,执行install-nexus.bat安装服务
打开浏览器,输入http://localhost:8081/nexus/进入nexus管理页面
点击右上角的log in登陆,默认用户名/密码是admin/admin123
仓库介绍
账户管理
手动上传jar包
上传的jar包位置通过pom.xml上传jar包
- 在eclipse中新建一个maven项目,打开pom.xml文件
- 在pom.xml中输入如下代码指定上传的路径
<distributionManagement> <repository> <id>releaseUser</id> <name>admin</name> <url>http://localhost:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>snapshotsUser</id> <name>admin</name> <url>http://localhost:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement>
再右键项目,选择run as–》maven build–》run即可上传jar包
- 引用maven私服的jar包
在pom.xml中输入如下代码
<repositories> <repository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://localhost:8081/nexus/content/groups/public</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://localhost:8081/nexus/content/groups/public</url> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc</artifactId> <version>10.1.0.2.0</version> </dependency> </dependencies>
可以引用私服的jar包
其中repository为仓库地址,pluginRepository为插件地址
0 0
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- nexus 搭建maven私服
- Maven私服nexus搭建
- 搭建Maven私服 - Nexus
- Nexus搭建Maven私服
- Nexus搭建Maven私服
- Maven 私服nexus搭建
- Nexus搭建Maven私服
- Nexus 搭建Maven 私服
- nexus 搭建 maven 私服
- Nexus搭建Maven私服
- nexus搭建maven私服
- maven搭建nexus私服
- 搭建maven私服nexus
- 搭建maven私服(nexus)
- nexus搭建maven私服
- Java中String字符串初始化细节
- 小鸦之设计模式(1) -观察者模式
- 蓝桥杯 剪邮票 全排列+DFS
- ## N26--第十六次博客作业
- 关于servlet中getParameterValues()的报错问题
- nexus搭建maven私服
- 使用弱引用的一个例子
- SVN安装步骤
- 图像金字塔
- 自学iOS开发系列----UI(常用控件:UIAlertController、UIPickerView、UIProgressView、UIWebView、UISwitch)
- 《转》单例模式中的懒汉模式和恶汉模式的区别
- 用ionic快速开发hybird App(已附源码,在下面+总结见解)
- linux下的c++ 多线程封装
- Vue.js中的列表渲染:v-for