sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
thank you man
I suggest you first download jdk from oracle website via wget, then install 1.8, after that set up environment variable in bash profile, as :
export JAVA_HOME=/usr/java/jdk1.8.0_171-amd64/
export JRE_HOME=//usr/java/jdk1.8.0_171-amd64/jre
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
Then you do not need to deal with java version after executed in the upper gist.
Very helpful, thank you.
Thank you, very helpful
Brilliant, thanks for this!
Thank you very much.....:)
Beautiful. Thanks man.
Thanks Mister
great thanks a lot
helped me a lot!!!
tyvm
Thanks a lot.It helps me.
Perfect..!! .Thanks.
Thanks a lot.....
Appreciate you for sharing this. It worked like a charm :)
Works Perfect...
Thank You!
still is not working. i tried to check my PATH, echo $M2_HOME (it's invisible, not showing) does anybody have a suggestion?
Thanks, @sebsto. This works on Amazon Linux 2.
perfect thank you so much
thanks a lot 👍
This worked great but set maven (and my default java) to use Java 1.7. If you want to use Java 1.8, follow the above gist and then do:
yum search java | grep openjdk yum install java-1.8.<revision number from yum search>-openjdk-headless.x86_64 yum install java-1.8.<revision number from yum search>-openjdk-devel.x86_64 update-alternatives --config java #pick java 1.8 update-alternatives --config javac #pick java 1.8
Thank you so much!
Thanks!!
You saved me a ton of time, thanks!
Thanks
Thanks
Thanks!!!!!!! Works great.
This worked, thanks so much, you are legend!
how we can update maven version on amazon ec2
thanks a lot
thank you