Instantly share code, notes, and snippets.
This is awesome. Thanks, exactly what I wanted
Thanks. Used in adriaanm/scala-jenkins-infra@9fe08ed
Seems like this repo is not working at the moment. I get:
http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/x86_64/repodata/194b1dce25e9483ae3ce34f3e4f807770dd77705-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
If you look in https://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/x86_64/repodata/repomd.xml, that file, 194b..., is listed for "primary_db" but is not served under ./repodata (I assume that is how it is supposed to work). Perhaps something is out of sink at the moment. BTW, I tried all manner of yum clean metadata; yum clean all; beforehand.
still down :(
Yes, unfortunately it is still down...
Yeay, it is back now.
Thanks for the assistance
ohhhh.. its so easy ... thanks alot
This worked for me ... thanks a ton !!
Worked on amazon linux.
this is fantastic, thank you.
If only there were more scripts like this floating around the Internet---thank you!
this is real handy ..saved my time. Thanks
Thank u for precise steps.
thanks for sharing. works like charm
thanks for the gist, works great.
Worked like charm ... Thanks a lot for sharing this.
Very nice - thanks
Awesome! Thank you!
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
@collinkrawll: Thanks for the command to switch to jdk8
Still works! 👍
Very nice. 👍
Thank you! 🆗
Exactly what I wanted. Just needed to so sudo su
thx this is exactly what im lookig for
@collinkrawll: thanks for the switch
All hail @sebsto!
thx this is exactly what im lookig for!!!
Thank you! Worked for me on the following docker image: sequenceiq/hadoop-docker:2.7.1
which is running CentOS release 6.6
(but did install wget first, 'yum install wget')
Thanks for the article.To make maven point to java8 instead of java7,did the following instead.
Create a new file ~/.mavenrc with the following content
Worked for me, many thanks!
sudo sed -i s/$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
can someone please explain what this command will do? and the path where maven actually gets installed after the above command?
@collinkrawll: Thanks for that. I need to change maven also to jdk 1.8.
But how could I provide this in ansible? Because with your command, there is always a prompt, where I must select the right version.
@isshwar 'sed' is a unix/linux utility and stands for "stream editor". It takes an input file and rewrites some parts of it using REGEX. In this case, it is replacing "$releasever" with "6". The reason being $releasever makes sense in fedora OS and not in Amazon Linux. Do a "man sed" on a linux system for more details. Hope this helps.
Thanks for the time save!
Work like a charm! Tks!
it shows network is unreachable in centos6.8(acadgild vm)
Very Nice... Awesome....:-)
This worked like a charm, Thank you!