Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding where Maven is installed

Tags:

maven

Maven seems to be installed on my workstation. I do not know Maven, but am trying to learn it. It looks like Maven uses (on Windows 7) the location C:\Users\User\.m2\repository. I have this location.

But when I try mvn --version I get nothing.

I have jdk, eclipse, jboss, jboss developer studio installed.

Is maven included in eclipse or jboss developer studio?

I can create a new maven project with jboss developer studio.

But I cannot follow the tutorials because they teach command line usage, and that does not work on my system.

Is Maven installed? Then, where is it, so I can add it to the path ( a search for 'maven' on the whole disk did not help me).

like image 284
Adrian 3873 Avatar asked Nov 05 '14 10:11

Adrian 3873


1 Answers

There is no default installation location for maven. It is distributed as a zip file. If you're sure you have maven on your machine, you need to search where you extracted it. You should search for "mvn.bat" and add the containing folder to your PATH environment variable. If you can't find it, it wouldn't hurt to download it again and extract the zip anywhere on your computer. As far as "C:\Users\User.m2\repository" is concerned. That is where maven keeps the project dependencies. You will not find the binaries there.

Also, I don't think maven comes packaged with eclipse.

like image 93
Furqan Shakoor Avatar answered Oct 11 '22 17:10

Furqan Shakoor