<div dir="ltr" style="text-align: justify;">
<p>In this tutorial we will see that how to install maven to the window platform. Apache Maven is not require to install on Windows as a service component, you just need to download the Maven’s zip file, extract it and configure the Windows environment path variable.</p>
<p><b><i>Maven is a Java tool, so you must have <a class="externalLink" href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank" rel="noopener">Java</a> installed in order to proceed.</i></b></p>
<h3><b>Tools Used :</b></h3>
<ol>
<li>JDK 1.6</li>
<li>Maven 3.0.5</li>
<li>Windows 7</li>
</ol>
<p><b>Step 1:</b> First, <a href="http://maven.apache.org/download.html" target="_blank" rel="noopener">download Maven</a> and follow the <a href="http://maven.apache.org/download.html#Installation" target="_blank" rel="noopener">installation instructions</a>. After that, type the following in a terminal or in a command prompt:</p>
<p><b>Step 2: JDK and JAVA_HOME</b><br />
Make sure JDK is installed, and <b>&#8220;JAVA_HOME&#8221; </b>variable is added in Windows environment variable, and point to the JDK folder.<br />
<img src="https://dineshonjava.com/wp-content/uploads/2013/02/setupjava1.png" alt="How to Install Maven in Windows" width="600" height="466" /><br />
<b><br />
Step 3: Extract downloaded apache-maven-3.0.5-bin.zip</b><br />
Extract the downloaded zip file. In this case, we extracted to F: driver and renamed the folder, e.g <b>F:maven</b></p>
<p><b>Step 4: Add MAVEN_HOME</b><br />
Add a new MAVEN_HOME variable to the Windows environment, and point it to your Maven folder.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/02/maven.png" width="600" height="573" border="0" /></div>
<p><b>Step 5: Add PATH</b><br />
Update PATH variable, append “Maven bin folder” path, so that you can run the Maven’s command everywhere.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/02/maven1.png" width="600" height="582" border="0" /></div>
<p><b>Step 6: Verification</b><br />
Done, to verify it, in command prompt, type &#8220;mvn –version&#8221;.</p>
<pre class="highlight">C:UsersDinesh>;mvn -version 
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21: 
28+0530) 
Maven home: F:mavenbin.. 
Java version: 1.6.0_23, vendor: Sun Microsystems Inc. 
Java home: C:Program Files (x86)Javajdk1.6.0_23jre 
Default locale: en_US, platform encoding: Cp1252 
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" 
C:UsersDinesh>; 
</pre>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/02/maven2.png" width="600" height="183" border="0" /></div>
<p>If you see similar message, means your Apache Maven is installed successfully on Windows.</p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/create-new-project-using-maven-in/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '554'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…