<mirrors> ... <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <name>Nexus Mirror</name> <url>http://<Your Nexus IP>/nexus/content/groups/public</url> </mirror> ... </mirrors> ... <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>nexus</id> <name>local private nexus</name> <url><Your Nexus IP>/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>nexus</id> <name>local private nexus</name> <url>http://<Your Nexus IP>/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>local private nexus</name> <url>http://<Your Nexus IP>/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>nexus</id> <name>local private nexus</name> <url>http://<Your Nexus IP>/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> ... <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles>
在maven的配置文件即setting.xml文件中添加上面的代码配置依赖下载路径和发布路径
<project> ... <distributionManagement> <repository> <id>nexus-releases</id> <name>Nexus Release Repository</name> <url>http://<Your Nexus IP>/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>nexus-snapshots</id> <name>Nexus Snapshot Repository</name> <url>http://<Your Nexus IP>/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> ... </project>
在项目的pom.xml文件中配置以上代码,指定发布到哪
<settings> ... <servers> <server> <id>nexus-releases</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers> ... </settings>
在maven配置文件中添加neuxs的用户名和密码
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin>
如果要将源码一同发布到neuxs仓库中需在pom.xml文件中配置以上代码
相关推荐
maven nexus 配置,简要介绍如何配置nexus。。。。。。
Cisco Nexus 系列学习笔记.。
Maven与Nexus配置.pdf 适合 架构师 和 高级测试工程师 阅读
目 录 Maven Nexus配置 1.配置nexus 1 2.管理仓库 2 3. 管理组 2 4. 配置maven 3 5.部署构件至Nexus 4 6.Nexus监听端口 5 7.Maven Profiles 5
cisco nexus 系列配置手册 1、产品概述 7K 只有 7K 支持 VDC(虚拟交换机)、OTV 透传vlan 的技术 5K 只有 5K 提供统一端口,既可以做 FC,也可以做以太网。默认不支持三层,通常认为是个二层设备。 4K 是 cisco...
nexus-详细配置文档
详细介绍了nexus私服的配置及安装方法
maven和nexus
Cicso NEXUS系列交换机配置笔记
搭建私服资源,包括Linux版本nexus3.40.1、上传私服需配置的setting文件,下载依赖需配置的setting文件,免费供大家取用
nexus私服nexus私服nexus私服nexus私服nexus私服nexus私服
Nexus 7000的配置和详细配件说明
详细介绍了nexus的各种配置,包括访问nexus的控制台页面、nexus repository的类型介绍和配置、设置开发机中maven的直接下载库。
压缩包里是nexus-2.9.0.war和nexus-2.14.2-01两个版本,可以根据情况选其一使用
nexus_configmgt_tool OneCloud Nexus 配置管理工具包
主要介绍了基于nexus3配置Python仓库过程详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
Maven私服 Nexus2.14.2 配置了阿里云仓库,国内下载非常快 本人亲自搭建,日常开发中使用并验证
Nexus安装和配置手册,详细地说明了Nexus的配置。
配置Nexus代理中央仓库,其它任何公开的Maven仓库,将你组织内部的Maven配置指向Nexus,这样所有构件都将从Nexus下载,如果Nexus没有你要的构件,它会自动先去外部仓库下载到本地,仅一次。 本地宿主仓库。Nexus可以...
nexus3.6.x安装配置,详细描述nexus3.6.x安装的具体步骤。