You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Patric Hindenberger <pa...@gmail.com> on 2016/02/16 11:52:02 UTC

Installation issue

Hello

i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and extracted the most recent maven- files.
I have set up the $JAVA_HOME correctly to 
/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home



But if i try to double check the install i get by

mvn --version



the result



-bash: mvn: command not found


Does somebody has a hint to me?


Thx
Patric


Re: Installation issue

Posted by Curtis Rueden <ct...@wisc.edu>.
Hi Patric,

I suggest installing Maven on OS X using Homebrew (http://brew.sh/).
Installation is as simple as "brew install maven" and then the "mvn"
command exists in /usr/local/bin.

Regards,
Curtis


On Tue, Feb 16, 2016 at 4:52 AM, Patric Hindenberger <
patric.hindenberger@gmail.com> wrote:

> Hello
>
> i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and
> extracted the most recent maven- files.
> I have set up the $JAVA_HOME correctly to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
>
>
>
> But if i try to double check the install i get by
>
> mvn --version
>
>
>
> the result
>
>
>
> -bash: mvn: command not found
>
>
> Does somebody has a hint to me?
>
>
> Thx
> Patric
>
>

Re: Installation issue

Posted by Eric B <eb...@gmail.com>.
Is mvn.sh in your path? Alternatively, if you go to the mvn/bin folder can
you run it via ./mvn.sh -version?
On Feb 18, 2016 6:06 PM, "Patric Hindenberger" <
patric.hindenberger@gmail.com> wrote:

> Hello
>
> i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and
> extracted the most recent maven- files.
> I have set up the $JAVA_HOME correctly to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
>
>
>
> But if i try to double check the install i get by
>
> mvn --version
>
>
>
> the result
>
>
>
> -bash: mvn: command not found
>
>
> Does somebody has a hint to me?
>
>
> Thx
> Patric
>
>

Re: Installation issue

Posted by Superfund <su...@resolvesw.com>.
This question has an answer on stack overflow at <http://stackoverflow.com/questions/26609922/maven-home-mvn-home-or-m2-home/26610326#26610326 <http://stackoverflow.com/questions/26609922/maven-home-mvn-home-or-m2-home/26610326#26610326>>.


> On 19 Feb 2016, at 10:37 AM, youssef boujallab <yo...@gmail.com> wrote:
> 
> Hello,
> 
> Did you set Maven home in your  environments variables?
> 
> Youssef
> Le 18 févr. 2016 23:06, "Patric Hindenberger" <pa...@gmail.com>
> a écrit :
> 
>> Hello
>> 
>> i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and
>> extracted the most recent maven- files.
>> I have set up the $JAVA_HOME correctly to
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
>> 
>> 
>> 
>> But if i try to double check the install i get by
>> 
>> mvn --version
>> 
>> 
>> 
>> the result
>> 
>> 
>> 
>> -bash: mvn: command not found
>> 
>> 
>> Does somebody has a hint to me?
>> 
>> 
>> Thx
>> Patric
>> 
>> 


Re: Installation issue

Posted by Stephen Coy <st...@resolvesw.com>.
This question has an answer on stack overflow at <http://stackoverflow.com/questions/26609922/maven-home-mvn-home-or-m2-home/26610326#26610326 <http://stackoverflow.com/questions/26609922/maven-home-mvn-home-or-m2-home/26610326#26610326>>.


> On 19 Feb 2016, at 10:37 AM, youssef boujallab <youssef.boujallab@gmail.com <ma...@gmail.com>> wrote:
> 
> Hello,
> 
> Did you set Maven home in your  environments variables?
> 
> Youssef
> Le 18 févr. 2016 23:06, "Patric Hindenberger" <patric.hindenberger@gmail.com <ma...@gmail.com>>
> a écrit :
> 
>> Hello
>> 
>> i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and
>> extracted the most recent maven- files.
>> I have set up the $JAVA_HOME correctly to
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
>> 
>> 
>> 
>> But if i try to double check the install i get by
>> 
>> mvn --version
>> 
>> 
>> 
>> the result
>> 
>> 
>> 
>> -bash: mvn: command not found
>> 
>> 
>> Does somebody has a hint to me?
>> 
>> 
>> Thx
>> Patric
>> 
>> 


Re: Installation issue

Posted by youssef boujallab <yo...@gmail.com>.
Hello,

Did you set Maven home in your  environments variables?

Youssef
Le 18 févr. 2016 23:06, "Patric Hindenberger" <pa...@gmail.com>
a écrit :

> Hello
>
> i try to install MAVEN on MAC OS X EL CAPITAN and have downloaded and
> extracted the most recent maven- files.
> I have set up the $JAVA_HOME correctly to
> /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
>
>
>
> But if i try to double check the install i get by
>
> mvn --version
>
>
>
> the result
>
>
>
> -bash: mvn: command not found
>
>
> Does somebody has a hint to me?
>
>
> Thx
> Patric
>
>