3.10版nexus在windows上的搭建
1.安装
当前目录下:cmd:
nexus.exe /run;
3.10以上的nexus没有了3rd_part,没有了视图化的界面。所以需要自己建一个。
需要在maven-public的group组中授权
新建用户:
然后在maven的setting.xml中添加用户校验:
上传第三方架包的例子:
mvn deploy:deploy-file -DgroupId=com.oracle-DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar-Dfile=F:\ojdbc6-11.2.0.1.0.jar-Durl=http://118.24.13.116:8081/repository/3rd_part/ -DrepositoryId=3rd_part
可以修改中央仓库的代理地址为阿里云的:
Setting.xml的配置:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0http://maven.apache.org/xsd/settings-1.0.0.xsd"> Pom.xml中的配置: <distributionManagement> <repository> <id>nexus-rsid> <name>Nexus Release Repositoryname> <url>http://118.24.13.116:8081/nexus/content/repositories/releases/url> repository> <snapshotRepository> <id>nexus-snapshotsid> <name>Nexus Snapshot Repositoryname> <url>http://118.24.13.116:8081/nexus/content/repositories/snapshots/url> snapshotRepository> distributionManagement>
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
