About Me
Facebook
Facebook
Linked In
Linked In
Twitter
Twitter
YouTube
YouTube
Google +
Google +

Sunday, December 27, 2015

Maven - Environment Setup

Introduction
Maven is Java based tool, so the very first requirement is to have JDK installed on your machine. We will discuss how to setup the Maven in windows operating system.
Overview
System Requirement
JDK
1.5 or above.
Memory
No minimum requirement.
Disk Space
No minimum requirement.
Operating System
No minimum requirement.
Verify Java installation on your machine
Now open console and execute the following java command.
Set JAVA environment
Set the JAVA_HOME environment variable to point to the base directory location where Java is installed on your machine. For example
Set the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.8.0_51.
Set Maven environment variables
Add M2_HOME to environment variables.
Set the environment variables using system properties.
M2_HOME=C:\JBoss\Maven\apache-maven-3.3.3
Add Maven bin directory location to system path
Now append M2 variable to System Path
Set the environment variables using system properties.
Path=C:\Program Files\Java\jdk1.8.0_51\bin;C:\JBoss\Maven\apache-maven-3.3.3\bin
Verify Maven installation
Now open console, execute the following mvn command.
Open Command Console        c:\> mvn –version
Finally, verify the output of the above commands, which should be something as follows:
Conclusion
Congratulations! You are now all set to use Apache Maven for your projects. In this article we covered Apache Maven setup in Windows Operating system.
Download
File Name
Size
Download
Maven - Environment Setup
400 KB

0 comments :

Post a Comment

Designed By AMEER BASHA G