Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:42:40+00:00 2026-06-10T18:42:40+00:00

When I wanted to enable Maven to run from the command line, I did

  • 0

When I wanted to enable Maven to run from the command line, I did the following things:

Installation directory:

C:\Software\maven221

System Variables (not user variables):

M2_HOME: C:\Software\maven221

M2: %M2_HOME%\bin
Path: ......;%M2%

The location of the JDK is also in the Path variable.

When I execute: java -version from cmd, it gives me the correct response.

When I execute: mvn --version it says it can not find mvn as a command.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:42:42+00:00Added an answer on June 10, 2026 at 6:42 pm

    I don’t think that the M2 environment variable is of any use by maven.

    Just create this environment variable:

    set M2_HOME = C:\Software\maven221
    

    And add to the PATH like this:

    set PATH = %M2_HOME%\bin;%PATH%
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wanted to know if there was a way one could query shelveset details from
just wanted to ask where I define initial class properties? From other languages I
I wanted to let Vim to sort variable declaration like the following: NotifyNotification* notification;
Is there a way to enable Wifi from code in BlackBerry OS? Thx --
I have a test sharepoint site with version 12.0.0.6219. I wanted to enable auditing
I am running XAMPP locally with Joomla 1.5.22 installed. I wanted to enable front
I started using ADODB for php5 as i wanted to upgrade my tools from
If I wanted to enable users to log in and out, what would be
I wanted to disable a button when the dialog is created initially. I enable
I'm using jettyRun for running my simple spring application. I wanted to enable hot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.