nexus服务搭建

1、下载安装包

下载路径:http://nexus.sonatype.org/downloads/  我down的是1.3.6(linux环境),现在的最新版是1.4.0,刚发布不久.

 

2、安装配置

直接解压就行了:# tar zxf nexus-webapp-1.3.6-bundle.tar.gz

配置文件($nexus_path/conf/plexus.properties):

 

application-port=8081
application-host=0.0.0.0
runtime=${basedir}/runtime
apps=${runtime}/apps
nexus-work=${basedir}/../sonatype-work/nexus
webapp=${runtime}/apps/nexus/webapp
webapp-context-path=/nexus
security-xml-file=${nexus-work}/conf/security.xml
application-conf=${nexus-work}/conf

# If this file is present, it will be used to configure Jetty.
jetty.xml=${basedir}/conf/jetty.xml

 端口如有冲突可以改一下,在第一行.其它的默认就行.

启动的时候注意bin目录下面的启动命令,它提供了各种环境的启动命令,在调用时注意选择与系统环境一致的命令,例如如我的环境 的启动命令调用:$nexus_path/bin/jsw/linux-x86-32/nexus start

启动成功提示信息:

[root@crawler nexus]# bin/jsw/linux-x86-32/nexus start
Starting Sonatype Nexus Repository Manager...
Started Sonatype Nexus Repository Manager.

 

日志文件查看:$nuxus_path/logs/wrapper.log

 

ok,现在可以通过http://ip:8081/nexus访问了,如果IE打不开或显示不正常的话,试一下firefox,nexus使用的extjs2.2版本实现.默认用户名密码是:admin/admin123(可以更改)

 

3、自定义库配置

网上除了maven官方之外还有很多站点提供maven依赖库的下载,需要注意如果有提示包下载失败,一定要先手动考贝日志中打印的路径到IE验证是否能拿到包信息.

首先进入到Repositories视图然后点Add button,得到如附件所示(添加一个新仓库的示例)

http://www.ibiblio.org/maven/mule/dependencies/maven2/

 

 

下次分两节讲settings.xml和SSH框架最新包的pom.xml配置.

 

参考文档

http://www.sonatype.com/books/maven-book/reference_zh/public-book.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值