Installing MAVEN with JDK-1.8

I am using an instance aws

to run my application java

and use java-1.8.0. Decided to install maven

to manage build, install and use to compile and build on my windows machine. Installed maven on aws using the following commands:

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

      

The problem with these commands is installing java-1.7.0(jdk)

as a dependency. There are compilation problems while I am using java-1.8.0

for development.

Also tried downloading maven.tar.gz to unpack and setting maven path. Mistake

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

      

I understand the problem. But from java install could not find jdk

in / usr / lib /. You could only see folders jre

. I couldn't risk installing java due to the fact that the cluster setup can get frustrating.

Any suggestions for installing maven

with dependency java-1.8.0

. thank

+3
java amazon-web-services maven-3


source to share


No one has answered this question yet

Check out similar questions:

2240
How to create an executable JAR with dependencies using Maven?
1116
Android SDK installation not finding JDK
646
Working with "Xerces hell" in Java / Maven?
480
Installing Maven on Mac OS X
478
IntelliJ Inspection gives "Cannot resolve symbol" but still compiles the code
291
Maven fails on Java 8 when Javadoc tags are incomplete
208
Uninstall Java 8 JDK from Mac
171
How can I change the default JDK for IntelliJ IDEA?
6
maven compiles code with java 1.7, but I want it to compile using 1.8
0
Eclipse Neon installation failed due to missing JRE / JDK



All Articles
Loading...
X
Show
Funny
Dev
Pics