安装git:
yum -y install git
安装maven:
wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.zip
mv apache-maven-3.6.1-bin.zip /usr/local
yum -y install unzip
unzip apache-maven-3.6.1-bin.zip
echo "
export MAVEN_HOME=/usr/local/apache-maven-3.6.1
export PATH=\$PATH:\$MAVEN_HOME/bin
" >> /etc/profile
source /etc/profile
mvn -v
生产ssh公玥:
ssh-keygen -t rsa -C "huangchengkang@vcredit.com" -b 4096
查看密钥:
cat ~/.ssh/id_rsa.pub
添加到git:
克隆git项目:
git clone -b dev git@git.kkcredit.cn:VMP/order-server.git order-server-dev
打包maven项目:
mvn clean -P dev package