Wednesday, November 8, 2017

Installing maven in GCP instance centos 7

Maven

 $yum -y install java-1.8.0
 $java -version
$yum -y install java-1.8.0-devel
$javac -version
$yum -y install maven
$mvn --version

[root@devops ~]# mvn --version
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.5.2.el7.x86_64", arch: "amd64", family: "unix"
[root@devops ~]#


Once Maven is installed, create a project using the below



No comments:

Post a Comment