[url=https://preilly.me/2013/05/10/how-to-install-maven-on-centos/]centOS install Maven[/url]
Next, set up Maven path system-wide:
Finally, log out and log in again to activate the above environment variables.
To verify successful installation of maven, check the version of maven:
$ mvn -version
$ sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local
$ cd /usr/local
$ sudo ln -s apache-maven-3.0.5 maven
Next, set up Maven path system-wide:
$ sudo vi /etc/profile.d/maven.shexport M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:${PATH}Finally, log out and log in again to activate the above environment variables.
To verify successful installation of maven, check the version of maven:
$ mvn -version
本文详细介绍了如何在CentOS系统上安装Maven的过程。包括解压Maven压缩包、设置Maven路径以及验证安装是否成功等步骤。适用于希望在CentOS环境下配置Maven的开发者。
2809

被折叠的 条评论
为什么被折叠?



