小D课堂-nexus
生活随笔
收集整理的這篇文章主要介紹了
小D课堂-nexus
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
資料地址:
?
---
虛擬機查看內存:https://www.cnblogs.com/sxdcgaq8080/p/10487864.html
文檔地址:https://xdclass-html-prod.oss-cn-shenzhen.aliyuncs.com/note/Jenkins%E6%8C%81%E7%BB%AD%E9%9B%86%E6%88%90git%20gitlab%20%20sonar.html
虛擬機安裝:https://blog.csdn.net/qq_39135287/article/details/83993574
nexus的使用:
本地的maven是如何配置的?
配置文件:
一個很干凈的xml
首先配置下server,這個id是倉庫的地址,用戶名,密碼
再配置私有庫
<?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"><pluginGroups/><proxies/><servers><server><id>xdclass-releases</id><username>admin</username><password>admin123</password></server><server><id>xdclass-snapshots</id><username>admin</username><password>admin123</password></server></servers><mirrors/><profiles><profile><id>xdclass</id><activation><activeByDefault>false</activeByDefault></activation><!-- 私有庫地址--><repositories><repository><id>xdclass</id><url>http://192.168.56.101:8081/repository/maven-public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><!--插件庫地址--><pluginRepositories><pluginRepository><id>xdclass</id><url>http://192.168.56.101:8081/repository/maven-public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>xdclass</activeProfile></activeProfiles> </settings>看下maven-public里面有幾個倉庫:
這幾個倉庫的區別
releases是正式版本的
snapshots是在開發中使用的
插件庫,一般是在這里使用插件庫的:
---
遠程倉庫修改相應的阿里云地址:
本地項目打包發布到遠程在本地的maven是如何配置的?
第一步:首先找到這個id,這個id主要是和xml的id是對應上的,終于知道這個id是干什么的了。
第二步:要把包發布到這些倉庫里面。
第三步:發布到遠程
第四步:
第五步:看本地的項目是如何引用的
---3-4---
?
總結
以上是生活随笔為你收集整理的小D课堂-nexus的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DHI Mike 后处理工具——污染带面
- 下一篇: 企业微信绑定企业邮箱服务器配置,企业微信