Maven學習-使用Nexus(3.*)搭建Maven私服
1:下載maven
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
2:解壓安裝
tar zxf apache-maven-3.5.4-bin.tar.gz
3:環境變數配置
vi /ect/profile
export MAVEN_HOME=/usr/local/apache-maven-3.5.4
export PATH=$PATH:$MAVEN_HOME/bin
source /ect/profile
mvn -version
4:安裝Nexus
1:下載安裝
wget https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.9.0-01-unix.tar.gz
tar -xvf nexus-3.9.0-01-unix.tar.gz
2:檢視配置檔案
/usr/local/nexus-3.9.0-01/etc/nexus-default.properties
3:nexus啟動
nexus start/stop/restart
5:更換maven配置檔案settings.xml
<localRepository>/usr/local/repository</localRepository> <pluginGroups> <pluginGroup>org.apache.maven.plugins</pluginGroup> </pluginGroups> <servers> <server> <id>maven-release</id> <username>admin</username> <password>admin123</password> </server> <server> <id>maven-snapshots</id> <username>admin</username> <password>admin123</password> </server> <server> <id>maven-thirdParty</id> <username>admin</username> <password>admin123</password> </server> </servers> </mirrors> <mirror> <id>nexus</id> <url>http://192.168.1.128:8081/repository/maven-public/</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>maven-public</id> <url>http://192.168.1.128:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>maven-public</id> <url>http://192.168.1.128:8081/repository/maven-public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles>
6:配置許可權(不配置,可能導致jar包下載不下來)
chown jenKins:jenkins /usr/local/repository
chmod 755 /usr/local/repository
相關推薦
Nexus 3 搭建 npm 私服 (windows)
14. .so 默認 剛才 load .com info bin manage Nexus 3 搭建 npm 私服備忘 下載與安裝 在官網下載Nexus Repository Manager OSS 3.x, 解壓至任意位置. 管理員運行 powershell, 切換到
Maven學習-使用Nexus(3.*)搭建Maven私服
1:下載maven wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz 2:解壓安裝 tar zxf apache-
使用 Sonatype Nexus 3 搭建 Maven 私服、本地私有 Maven 倉庫,Gradle 打包 jar 、arr 後自動上傳到 Nexus Maven 倉庫配置
1 下載 Nexus 3 官網截圖 注:Nexus 3 版本的執行需要 jdk1.8 解壓 得到 2 個資料夾 // Nexus 執行時所需要的檔案,如啟動指令碼 nexus-3.9.0-01 // Nexus生成的配置檔案,
maven 利用docker容易搭建nexes私服
伺服器:ubuntu-16.04 1、 更新資源: $ sudo apt-get update 更新 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的地址,這樣才能獲取到最新的軟體包 2、安裝docker
48、Maven學習(CentOS7搭建Nexus3.2.1私服2017年3月)
Centos7搭建Nexus3 Nexus官方網站:https://www.sonatype.com/download-oss-sonatype 下載unix 的tar.gz版本即可 當前版本為3.2.1 解壓後得到兩個資料夾 tar -zxvf nexus-3.2.
windows 下用 Nexus Sonatype 搭建 Maven 私服
1、 為什麼使用Nexus 如果沒有私服,我們所需的所有構件都需要通過maven的中央倉庫和第三方的Maven倉庫下載到本地,而一個團隊中的所有人都重複的從maven倉庫下載構件無疑加大了倉庫的負載和浪費了外網頻寬,如果網速慢的話,還會影響專案的程序。很
Maven上傳jar包到私服
new posit setting 用戶 lease release -1 str family 1、認證,在M2_HOME/conf/settings.xml配置用戶名密碼 2、在將要上傳項目的pom.xml中配置jar包上傳路徑url <distrib
maven打包jar源碼至私服
ecif xml配置 nco 3.2 源碼 eas exec amp releases 1. setting文件 配置私服中設置的用戶和密碼 <servers> <server> <id>rel
MyEclipse中引用的maven配置文件只訪問私服的配置
clip clas ase 密碼 mirrors 外部 lips ips 配置私服 MyEclipse中要用到集成的maven,公司內網有個私服,辦公機不能上外網。 這時Eclipse中設置引用的外部Setting配置文件中只需如下配置即可: 1.配置本地主機
nexus搭建npm私服
其實官方文件中都有寫具體的步驟。不過對於nexus2和nexus3的區分不太好查閱。 英文文件地址:https://books.sonatype.com/nexus-book/3.3/reference/npm.html#_browsing_npm_registries_and_sea
使用 Nexus 搭建 PyPi 私服及上傳
最近一直在找pytho的包管理器pypi私服,通過google,找到比較流行的2種伺服器: Nexus Repository Manager OSS 3.x 與 devpi Nexus Repository Manager OSS 3.x 安裝 https://ww
maven上傳Jar包到私服及從私服下載jar包相關配置
有關使用Maven常見問題總結(Eclipse中使用Maven、Maven專案部署到tomcat等問題) http://blog.csdn.net/sunitjy/article/details/42709311 ***************************************
Maven 上傳jar包到私服、將jar包匯入本地倉庫
1.上傳到私服: mvn deploy:deploy-file -DgroupId=org.drools -DartifactId=drools-compiler -Dversion=3.0.1 -Dpackaging=jar -Dfile=C:\lib\dro
4、maven倉庫的概念和建立私服
學習目標: 1、瞭解maven的本地庫、私有庫和遠端庫的概念 2、瞭解nexus 3、掌握nexus的安裝和配置 學習過程: 一、倉庫的概念 1、倉庫簡介 maven倉庫分為本地倉庫和遠端倉庫。前面講過,maven專案所需要的構件並不是複製在專案的lib中,而是每一次部署
Maven倉庫—Nexus環境搭建及簡單介紹
1. 環境搭建 1.1 下載 NEXUS OSS [OSS = Open Source Software,開源軟體——免費] NEXUS PROFESSIONAL -FR
maven上傳jar包至私服
前提:本地dos視窗執行mvn -v檢視是否配置mvn環境,沒有配置的話需要先配置mvn環境; 1、修改本地maven軟體 conf/settings.xml,加入使用者許可權: </servers> <server> &
Windows下使用Nexus搭建pypi私服
Nexus之前一直作為maven的私服而被大家所熟知,但是其實nexus可以做很多種倉庫的私服,官網的說明就揭示了一切,真是又方便又強大的開源工具。 首先下載安裝nexus,地址: https://www.sonatype.com/oss-thank-you-win64
Maven學習筆記——環境搭建
-------------------------------------------- 本文目錄: 一、在 Windows 上安裝 Maven 二、安裝 Eclipse 外掛:m2eclipse -------------------------------------------- 一、在 Window
實測Maven上傳jar包到私服的方法歸納
Hello,各位小夥伴大家好,我是小棧君。好久不見,最近因為工作的緣故,導致了更新變慢,但是小棧君也在積極的做素材的規劃,畢竟學習知識點的歸納和提煉需要一定的時間。 所以還請大家多多見諒,下一期的分享主題我們依舊會圍繞著go語言系列進行。不過小棧君會盡量加快節奏。因為接下來的挑戰是對於最近關乎國家戰略有關的區
Maven學習(四)-- Maven的核心概念
pue nlj 人員 gbk provided spi vts 源代碼 -s 摘自:http://www.cnblogs.com/xdp-gacl/p/4051819.html 一、Maven坐標 1.1、什麽是坐標? 在平面幾何中坐標(x,y)可以標識平面中唯一的一