Installing and configuring Maven on a Windows environment

Maven can be downloaded from the Apache Maven Downloads website here.

Note: Ensure Maven is downloaded only after the Java Development Kit (JDK) has been installed and configured. Refer to the Knowledge Article found here on how to install and configure Java Development Kit (JDK) for Windows.

Download the Maven ZIP file and then extract the ZIP archive to a folder location of your choice.

When using Windows, the above parameters can be configured in the Environment Variables panel. Select the Start button and type env (Figure 1):

1.png

Figure 1 Edit environment variables for your account

Note: Environment variables can be set at the account level, or at the system level.

In this example, select Edit environment variables for your account (Figure 2):

2.png
Figure 2 Environment Variables 

Add the MAVEN_HOME and M2_HOME Environment Variables, followed by the M2_HOME and MAVEN_HOME variables to the Maven installation folder.

Note: Include the maven/bin directory in the PATH variable so Maven can run from a command-line tool.

To test the above configuration has been entered correctly, open a command prompt from the Start button, type mvn -version and press Enter. This should display the results below (Figure 3):

3.png

Figure 3 Results

The install will now be complete.

If the install fails, please contact the Symphony Support team at support@symphony.com and inform them that you are experiencing issues with a Maven install for Windows.