CentOS6.3 install Maven3 (1) Maven requires a JDK environment, so first confirm that the JDK environment has been installed. you can use the java-version command on the terminal to view it. my name is www.2cto. comjavaversion & quot; 1.7.0 _ 07 & quot; Java (TM )...
CentOS 6.3 to install Maven3 (1) Maven requires a JDK environment, so first confirm that the JDK environment has been installed. you can run the java-version command on the terminal to check the installation. my options are: www.2cto.com java version "1.7.0 _ 07" Java (TM) SE Runtime Environment (build 1.7.0 _ 07-b10) Java HotSpot (TM) Client VM (build 23.3-b01, mixed mode, sharing) merge. : Http://maven.apache.org/download.html. (3) unzip to the/usr/local directory, command: tar-zxvf apache-maven-3.0.4-bin.tar.gz/usr/local. The decompressed directory is: apache-maven-3.0.4. (4) establish a link for easy upgrade: ln-s apache-maven-3.0.4 apache-maven. (5) in ~ /. Add the following two lines to bashrc: export M3_HOME =/usr/local/apache-maven export PATH =$ {M3_HOME}/bin :$ {PATH} (6) and execute the following command, make environment parameters take effect :. ~ /. Bashrc (7) check the mvn version and check whether the configuration is correct. Command: if the installation and configuration of mvn-version are correct, the Maven version and installation directory, JDK information, and operating system information are displayed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service