跳至主要内容

博文

目前显示的是 四月, 2012的博文

nexus configuration

nexus是个很好的maven仓库管理器,官方网站为http://nexus.sonatype.org/ 安装nexus到tomcat: 1) 下载nexus-webapp-1.6.0.war 2) 解压nexus-webapp-1.6.0.war到tomcat安装目录下的webapps子目录下,并更名为"nexus" 3) 修改nexus的工作目录:编辑文件“webapps/nexus/WEB-INF/plexus.properties”,修改nexus-work的值为希望的工作目录,默认为nexus-work=${user.home}/sonatype-work/nexus,其中${user.home}为你当前用户的工作目录。 4) 配置maven使用nexus:编辑文件“ ${user.home}/.m2/settings.xml”,修改为如下配置:                   nexus       *       http://localhost:8081/nexus/content/groups/public                   nexus                                     central           http://central           true           true                                      central           http://central           true           true                               nexus   其中“http://localhost:8081/nexus”的访问路径,视你的实际部署情况可能端口并不一样,注意修改。 5) 启动tomcat,通过http://localhost:8081/nexus即可访问nexus的界面,默认的管理员帐号为admin,密码为admin123。 如何将自己项目的jar发布到nexus仓库: 1) 编辑文件“ ${user.home}/.m2/settings.xml”,增加如下配置: ......         nexus-releases       admin