linux下maven私有倉庫搭建

2021-08-19 22:53:51 字數 774 閱讀 6711

(我的目錄在mnt下)

執行命令解壓tar包

tar zxvf nexus-2.12.0-01-bundle.tar.gz 

進入解壓好的目錄

cd /mnt/nexus-2.12.0-01

進入bin目錄執行nexus

cd bin

./nexus start

提示錯誤

****************************************

warning - not recommended to run as root

****************************************

if you insist running as root, then set the environment variable run_as_user=root before

running this script.

因為我是root使用者所以需要切換成其他使用者或者設定環境變數

export run_as_user=root

設定環境變數

vim ~/.bash_profile 

末尾追加上

export run_as_user=root

載入剛設定的變數

source /etc/profile

配置maven內網倉庫

nexusid deploymentusername deploymentpassword server myprofileid myrepositoryid repository for mename repository repositories profile profiles myprofi...

linux 私有gitlab倉庫配置郵件

email settings gitlab rails gitlab email enabled true gitlab rails gitlab email from xx com gitlab rails gitlab email display name gitlab gitlab rails...

maven 倉庫搭建及使用

進入 nexus 2.14.5 02 bundle nexus 2.14.5 02 bin jsw windows x86 64 執行 console nexus.bat 使用者名稱 admin 密碼 admin123 配置nexus使用者名稱和密碼,這裡不作詳細說明。把中的 寫進pom.xml中就...