Building a Java application using Maven
Maven provides benefits for our build process by employing standard conventions and practices to accelerate our software development cycle and help us to achieve a higher rate of success. We will now see the build of a Maven application.
Getting ready
To play around with the Java application and build it using Maven, we need JDK7/8 and Maven to be installed on our local machine.
Install Java and verify
In this section, we will be installing Java-8 and verify it:
[root@awsstar ~]# yum install java-1.8.0-openjdk -y [root@awsstar ~]# java -version openjdk version "1.8.0_141" OpenJDK Runtime Environment (build 1.8.0_141-b16) OpenJDK 64-Bit Server VM (build 25.141-b16, mixed mode)
Install Apache Maven and verify
In this section, we will be installing Maven 3.3.9 and after that, we will set the environment path:
[root@awsstar ~]# wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz [root@awsstar ~]# tar -xf apache-maven...