In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to continuously integrate and automate the installation of Maven in Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Extract the Maven package
Tar xf apache-maven-3.5.4-bin.tar.gz
Move the extracted maven file to / usr/local/
Mv apache-maven-3.5.4 / usr/local
#! / bin/bash#maven installation directory mkdir / usr/maven# installation package placement directory cd / usr/src http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/source/apache-maven-3.5.4-src.tar.gztar-xzvf apache-maven-3.5.4-bin.tar.gzrm-f apache-maven-3.5.4-bin.tar.gzmv apache-maven-3.5.4/* / usr / maven# configuration environment variable PROFILE=$ (cat / etc/profile) PATH='export PATH=$PATH'REPLACE='export PATH=$PATH:$MAVEN_HOME/bin'# whether there is already a configuration path for other environment variables if [[$PROFILE= = * $PATH*]] # add variable path then echo "${PROFILE/$PATH/$REPLACE}" > / etc/profile# to append the path else echo "$REPLACE" > > / etc/profilefiecho "export MAVEN_HOME=/usr/maven" > > / Etc/profile# update configuration file source / etc/profile# View mvn version mvn-version
Update Fil
Source / etc/profile
Verification
Mvn-v
At this point, the Maven installation is complete.
This is the end of this article on "how to continuously integrate and automate the installation of Maven in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.