In this article, we will learn on how to setup Apache Maven in Windows 7 Operating Systems
Apache Maven is a build tool and it is not specific to any environment, so if one wish to prefer using Maven in Linux OS or Mac OS then they can very well go ahead. But, here we are installing Apache Maven in Windows 7 OS environment
Technology Used:
- JDK 1.7
- Apache Maven 3.2.3
- Windows 7 OS
Apache Maven Installation Steps:
- Make sure JDK is installed and JAVA_HOME is set as Windows environment variable
Verify this using command “java -version” - Download latest Apache Maven and extract to suitable location
- Set MAVEN_HOME as Windows environment variable
- Add Maven to “path” environment variable
- Verify Maven, using command “mvn –version”
Step 1: Verify whether JDK installed and JAVA_HOME is set
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_06
Note: From Maven 3.2 onwards, JDK 1.6 or higher version is required
Step 2: Download Apache Maven and extract to suitable location
Download latest Apache Maven-3.2.3 from here and extract to some suitable location like “D:\Downloads\Software\apache-maven-3.2.3”
Step 3: Add MAVEN_HOME to Windows environment variable –> pointing to Maven folder
MAVEN_HOME = D:\Downloads\Software\apache-maven-3.2.3
Step 4: Add Maven to “path” environment variable
Append “%MAVEN_HOME%\bin;” to PATH environment variable
Step 5: Verify Maven
Everything is done, just verify whether maven working or not using command “mvn –version” in command prompt
Conclusion: We have successfully installed Apache Maven on Windows environment
Useful Eclipse IDE shortcuts :
- Eclipse IDE – How to show line numbers ?
- Eclipse IDE – How to GO TO any line number directly ?
- Eclipse IDE – How to remove unused imports ?
- Eclipse IDE – How to clean project ?
- Eclipse IDE – How to build Java project automatically ?
- Eclipse IDE – How to comment and un-comment line & block ?
- Eclipse IDE – How to generate constructor using fields ?
- Eclipse IDE – How to generate getters and setters ?
- Eclipse IDE – How to search files ?
- Eclipse IDE – How to locate methods in Java file ?
- Eclipse IDE – How to open editor using CTRL + E ?
- Eclipse IDE – Java compiler compliance level issue
Related Articles:
- Apache Maven – Introduction
- Apache Maven – Install on Windows 7 OS
- Apache Maven – Settings.xml explanation
- Apache Maven – Proxy setting explanation
- Apache Maven – pom.xml explanation
- Apache Maven – Plugins explanation
- Apache Maven – Changing default Maven repository location in Windows 7 OS
- Apache Maven – Local, Central and Remote Repositories
- Apache Maven – Installing custom library into local repository
- Apache Maven – Transitive dependencies explanation
- Apache Maven – Exclusion of Transitive dependencies
- Apache Maven – Dependency Scopes
- Apache Maven – Skipping unit test using surefire plugin
- Apache Maven – Exclusions and Inclusions of unit test
- Apache Maven – offline execution
- Apache Maven – Co-ordinates explained
- Eclipse + Maven – Integration
- Eclipse + Maven – How to import Maven project with pom.xml ?
- Eclipse + Maven – Setting M2_REPO classpath variable in IDE
- Eclipse + Maven – M2_REPO is Non Modifiable
- Eclipse + Maven – Creating and exploring projects using archetypes
- Eclipse + Maven – Converting Web project to Maven project
- Eclipse + Maven – mvn eclipse:eclipse command
- Eclipse + Maven – Plugin execution not covered by lifecycle configuration
Happy Coding !!
Happy Learning !!