Maven is a build tool that automates everything related to building a software project, including:
- Compiling all the source code
- Generating the documentation from the source code
- Packaging the complied code into a JAR or WAR archive file
- Installing the packaged archives files on a server
To install Maven:
- Go to Maven’s download page: http://maven.apache.org/download.cgi
- Click on the apache-maven-3.2.5-bin.zip
- Once the download is finished, go to the downloaded directory and extract the .zip file into a convenient directory of your choice.
- Update the System Path variable with a new environment variable called M2_HOME that points to the directory that you put the maven files.
- Create one more environment variable, called MAVEN, with the value %MAVEN_HOME%\bin.
- Finally append the MAVEN variable to the PATH environment variable as well.
To verify the installation run the mvn -version command in the command console.
Recent Comments