Loading alternative title
Wednesday, January 22, 2025

How to install maven 3.9.9 in window 10



Installing Maven 3.9.9 on Windows 10 involves downloading it, extracting it, and setting up environment variables. Here’s a step-by-step guide:

1. Download Maven 3.9.9

  1. Visit the Maven Download Page:

  2. Download the Binary ZIP Archive:

    • Select the binary .zip archive for Maven 3.9.9.
    • Click the link to download it.

2. Extract the Maven Archive

  1. Locate the Downloaded File:

    • Find the downloaded .zip file in your Downloads folder.
  2. Extract the ZIP File:

    • Right-click the file and choose Extract All or use a tool like WinRAR/7-Zip.
    • Extract it to a directory of your choice, e.g., C:\Program Files\Apache\Maven.

3. Set Up Environment Variables

  1. Open System Properties:

    • Press Win + S and search for "Environment Variables."
    • Select Edit the system environment variables.
  2. Add MAVEN_HOME Variable:

    • In the Environment Variables dialog, click New under System Variables.
    • Add:
      • Variable Name: MAVEN_HOME
      • Variable Value: Path to the Maven directory (e.g., C:\Program Files\Apache\Maven\apache-maven-3.9.9).
  3. Update the Path Variable:

    • Find the Path variable under System Variables and click Edit.
    • Add a new entry: %MAVEN_HOME%\bin.
  4. Save Changes:

    • Click OK to close all dialog boxes.

4. Verify Installation

  1. Open Command Prompt:

    • Press Win + R, type cmd, and press Enter.
  2. Check the Maven Version:

    • Run the command:
    • bash
      mvn -v
    • It should display Maven 3.9.9 version information and other environment details.

5. Test Maven

(Optional) You can test Maven by creating a simple project:

  1. Run:
    bash
    mvn archetype:generate -DgroupId=com.example -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  2. Navigate to the project directory and build it:
    bash
    cd my-app mvn package

You're ready to use Maven 3.9.9! Let me know if you need further assistance.

  • Share on:
image title here

Some title