日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

使用nexus下载资源

發(fā)布時(shí)間:2023/12/9 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 使用nexus下载资源 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

【1】使用nexus下載資源
nexus資源
提取碼:e63p

【1】使用nexus下載資源

私服咱們搭建好了,那他是怎么工作的呢?

【1.1】配置settings文件中

maven的setting配置中刪除aliyun的中央倉庫,替換成nexus私服服務(wù)器

<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><!--配置本地倉庫地址--><localRepository>F:/maven-repository/repository</localRepository><proxies></proxies><servers><!-- 定義了開發(fā)庫帳號(hào)密碼(id與項(xiàng)目POM中的distributionManagement元素id必須一樣--><server><id>snapshots</id><username>admin</username><password>admin123</password></server><server><id>releases</id><username>admin</username><password>admin123</password></server><server><id>thirdparty</id><username>admin</username><password>admin123</password></server></servers><mirrors><!-- 使用nexus私服庫,而我們搭建的nexus的central代理可以已經(jīng)被我們修改為aliyun的中央庫,所以這里可以不配置,阿里服務(wù)--><mirror><id>nexus</id><mirrorOf>*</mirrorOf><name>nexus-mirror</name><url>http://127.0.0.1:8085/nexus/content/groups/public/</url></mirror></mirrors><profiles><!--下載jar源碼--><profile><id>downloadSources</id><properties><downloadSources>true</downloadSources><downloadJavadocs>true</downloadJavadocs></properties></profile><profile><id>nexusProfile</id><!--指定JAR下載地址--><repositories><repository><id>public</id><name>public</name><url>http://127.0.0.1:8085/nexus/content/groups/public/</url><snapshots><enabled>true</enabled></snapshots><releases><enabled>true</enabled></releases><layout>default</layout></repository></repositories><!--指定插件下載地址--><pluginRepositories><pluginRepository><id>public</id><name>public</name><url>http://127.0.0.1:8085/nexus/content/groups/public/</url><snapshots><enabled>true</enabled></snapshots><releases><enabled>true</enabled></releases></pluginRepository></pluginRepositories></profile></profiles><!--激活環(huán)境配置--><activeProfiles><activeProfile>downloadSources</activeProfile><activeProfile>nexusProfile</activeProfile></activeProfiles></settings>

【1.2】清空本地倉庫

我的本地倉庫F:/maven-repository/repository刪除目錄下所有文件

【1.3】從新配置IDEA

【1.4】測(cè)試結(jié)果

點(diǎn)擊右側(cè)maven刷新


setting文件中并沒有配置aliyun的中央庫,但是jar正常下載,說明我們通過nexus服務(wù)器訪問了aliyun倉庫

總結(jié)

以上是生活随笔為你收集整理的使用nexus下载资源的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。