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

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

Nexus 3.31.1 maven 私服 仓库和IntelliJ IDEA 2021.2 实战篇 linux

發(fā)布時(shí)間:2024/9/27 linux 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Nexus 3.31.1 maven 私服 仓库和IntelliJ IDEA 2021.2 实战篇 linux 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.


文章目錄

        • 一、maven配置
          • 1. 私服配置
          • 2. 替換后的配置
        • 二、IntelliJ IDEA
          • 2.1. 創(chuàng)建項(xiàng)目
          • 2.2. 指定配置
          • 2.3. 下載依賴
          • 三、nexus3 監(jiān)控
          • 3.1. 查看依賴版本
          • 3.2. 版本對(duì)比
          • 3.3. aliyun 倉(cāng)庫(kù)地址

一、maven配置

1. 私服配置

在本地的maven 配置settings.xml內(nèi)容,用下面內(nèi)容覆蓋

<?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></pluginGroups><proxies></proxies><servers><server><id>local-test-release</id><username>admin</username><password>admin</password></server></servers><mirrors><mirror><id>local-test-group</id><name>*</name><url>http://127.0.0.1:8081/repository/local-test-group/</url><!--*指的是訪問(wèn)任何倉(cāng)庫(kù)都使用我們的私服--><mirrorOf>*</mirrorOf></mirror></mirrors><profiles><profile><id>nexus</id><repositories><!-- 私有庫(kù)地址--><repository><id>nexus</id><url>http://127.0.0.1:8081/repository/local-test-group/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><!--插件庫(kù)地址--><pluginRepository><id>nexus</id><url>http://127.0.0.1:8081/repository/local-test-group/</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>nexus</activeProfile></activeProfiles></settings>
2. 替換后的配置

二、IntelliJ IDEA

idea 測(cè)試
新建項(xiàng)目或者在現(xiàn)有的項(xiàng)目中添加依賴都可以,要是在現(xiàn)有的項(xiàng)目中添加MySQL依賴,刷新maven

2.1. 創(chuàng)建項(xiàng)目


2.2. 指定配置

2.3. 下載依賴

三、nexus3 監(jiān)控
3.1. 查看依賴版本

這里以spring-boot-starter-web 2.5.7依賴查看

咱們只要下載過(guò)得maven依賴都會(huì)上傳 nexus3 私服倉(cāng)庫(kù)中

3.2. 版本對(duì)比

3.3. aliyun 倉(cāng)庫(kù)地址

https://developer.aliyun.com/mvn/guide

總結(jié)

以上是生活随笔為你收集整理的Nexus 3.31.1 maven 私服 仓库和IntelliJ IDEA 2021.2 实战篇 linux的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

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