Last active
October 3, 2017 11:50
-
-
Save odrianoaliveira/3eadc9f05c037b56a5016c1069227b46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Bootstrap script to install OpenJDK 1.8 and maven into Amazon Linux | |
| # | |
| yum install git -y | |
| wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
| sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
| yum install apache-maven -y | |
| yum install -y java-1.8.0-openjdk.x86_64 | |
| /usr/sbin/alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java | |
| #/usr/sbin/alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-1.8.0-openjdk/javac 3 | |
| /usr/sbin/alternatives --set javac /usr/lib/jvm/java-1.8.0-openjdk/javac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment