Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few steps you can take to enable regular users to use the Maven "mvn" command:

  1. Install Maven on the machine using an Administrator account.

  2. Set the environment variables for Maven:

    a. Open the start menu and type "env" in the search bar.

    b. Click on "Edit the system environment variables".

    c. Click on the "Environment Variables" button.

    d. Under "System Variables", click "New".

    e. Enter "MAVEN_HOME" as the variable name and the path to your Maven installation as the variable value, such as "C:\Program Files\Maven".

    f. Select the "Path" variable under "System Variables" and click "Edit".

    g. Add the path to your Maven bin directory, such as "%MAVEN_HOME%\bin".

    h. Click "OK" to close all windows.

  3. Grant permissions to the Maven installation folder and its sub-folders to the regular users. This can be done by right-clicking on the Maven installation folder, selecting "Properties", clicking on the "Security" tab, and adding the appropriate permissions for each user.

  4. Test the installation by opening a new command prompt window and running "mvn -version". If the command is successful and displays the Maven version information, regular users should now be able to use the "mvn" command.