What is  Maven ?

Maven is a build automation tool used primarily for Java projects.
Maven addresses two aspects of building software:
first, it describes how software is built, and second, it describes its dependencies.
Maven dynamically downloads Java libraries and Maven plug-ins from one or more repositories such as the Maven 2 Central Repository, and stores them in a local cache.
Build lifecycles
Maven's default lifecycle, which includes the following phases
 1  validate
 2  generate-sources
 3  process-sources
 4  generate-resources
 5  process-resources
 6  compile
 7  process-test-sources
 8  process-test-resources
 9  test-compile
10  test
11  package
12  install
13  deploy

How to install Maven on Windows


1. Download And install JDK
2  Set Environment Variable JAVA_HOME
3. Download Apache Maven
Visit Maven official website  http://maven.apache.org/  download the Maven zip filer example : apache-maven-3.3.9-bin.zip.
4. Unzip it to the folder you want to install Maven  C:\Program Files\maven
5.  Add M2_HOME  Environment variable
6. Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.
7. Done, to verify it, run mvn –version in the command prompt.

No comments:

| Designed by Harhiktech