- yum update - my centos6.4 box was out of date and yum couldn't handle https repos, the ca-certificates package needed updating.
- yum install epel-release - the EPEL repos will now work as they use https by default
- yum install java-1.7.0-openjdk-devel - yeah java!
- yum install wget - no it wasn't installed by default
- wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo - Maven is not available from standard RPM repo sigh
yum install apache-maven- nope! it will fail as it requires java-devel >= 1.7.0 which for some reason java-1.7.0-openjdk-devel fails to provide, even though the 1.5 and 1.6 packages do! sigh- yum install yum-utils - to get repoquery
- rpm -Uvh --nodeps `repoquery --location apache-maven` - install maven ignoring dependency
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts
Wednesday, 14 October 2015
Installing Maven on Centos 6.4 with Java 1.7
Wanted to build a virtual machine under Vagrant to build Java 1.7 applications that will be deployed on RH/Centos6.4. As root or use sudo:
Subscribe to:
Posts (Atom)