Installation issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation issue

Romanos Sklavenitis Pistofidis
Hi all,

I am trying to get started with Maven, but I am having trouble installing it.
 
I have edited my ~/.bash_profile and added /usr/local/apache-maven-3.5.3/bin to the $PATH variable and set $JAVA_HOME to /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home, but when I call mvn, command is not found.

Any suggestions?

Thanks a lot!

~Romanos
Reply | Threaded
Open this post in threaded view
|

RE: Installation issue

Golan, Yaron
What is the output of:
ls -l /usr/local/apache-maven-3.5.3/bin

if it is OK, try to open a new terminal or, alternatively, run 'source .bash_profile'



-----Original Message-----
From: Romanos Sklavenitis Pistofidis [mailto:[hidden email]]
Sent: Wednesday, March 28, 2018 16:51
To: [hidden email]
Subject: Installation issue

Hi all,

I am trying to get started with Maven, but I am having trouble installing it.
 
I have edited my ~/.bash_profile and added /usr/local/apache-maven-3.5.3/bin to the $PATH variable and set $JAVA_HOME to /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home, but when I call mvn, command is not found.

Any suggestions?

Thanks a lot!

~Romanos

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Installation issue

Romanos Sklavenitis Pistofidis
Hello,

I actually extracted it inside /usr/local/bin. So, this is what I see:

ls -l /usr/local/bin/apache-maven-3.5.3/bin
total 64
-rw-r--r--@ 1 romanos  admin   228 Feb 24 14:46 m2.conf
-rwxr-xr-x@ 1 romanos  admin  5741 Feb 24 14:46 mvn
-rw-r--r--@ 1 romanos  admin  6343 Feb 24 14:46 mvn.cmd
-rwxr-xr-x@ 1 romanos  admin  1485 Feb 24 14:46 mvnDebug
-rw-r--r--@ 1 romanos  admin  1668 Feb 24 14:46 mvnDebug.cmd
-rwxr-xr-x@ 1 romanos  admin  1532 Feb 24 14:46 mvnyjp

I have sourced it and opened a new terminal. No difference.

Thanks a lot!

> On Mar 28, 2018, at 9:58 AM, Golan, Yaron <[hidden email]> wrote:
>
> ls -l /usr/local/apache-maven-3.5.3/bin

Reply | Threaded
Open this post in threaded view
|

RE: Installation issue

Samuli Saarinen
Hi,

"
I have edited my ~/.bash_profile and added /usr/local/apache-maven-3.5.3/bin
"

Might be a typo but there is one 'bin' missing from that path. Should probably be /usr/local/bin/apache-maven-3.5.3/bin

br,
Samuli

> -----Original Message-----
> From: Romanos Sklavenitis Pistofidis [mailto:[hidden email]]
> Sent: 28. maaliskuutata 2018 17:02
> To: Maven Users List <[hidden email]>
> Subject: Re: Installation issue
>
> Hello,
>
> I actually extracted it inside /usr/local/bin. So, this is what I see:
>
> ls -l /usr/local/bin/apache-maven-3.5.3/bin
> total 64
> -rw-r--r--@ 1 romanos  admin   228 Feb 24 14:46 m2.conf
> -rwxr-xr-x@ 1 romanos  admin  5741 Feb 24 14:46 mvn
> -rw-r--r--@ 1 romanos  admin  6343 Feb 24 14:46 mvn.cmd
> -rwxr-xr-x@ 1 romanos  admin  1485 Feb 24 14:46 mvnDebug
> -rw-r--r--@ 1 romanos  admin  1668 Feb 24 14:46 mvnDebug.cmd
> -rwxr-xr-x@ 1 romanos  admin  1532 Feb 24 14:46 mvnyjp
>
> I have sourced it and opened a new terminal. No difference.
>
> Thanks a lot!
>
> > On Mar 28, 2018, at 9:58 AM, Golan, Yaron <[hidden email]> wrote:
> >
> > ls -l /usr/local/apache-maven-3.5.3/bin


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Installation issue

Yaron Goldstein
Hi,
Your maven bin folder should be in your path env.
Thanks,
Yaron

בתאריך יום ה׳, 29 במרץ 2018, 8:32, מאת Samuli Saarinen ‏<
[hidden email]>:

> Hi,
>
> "
> I have edited my ~/.bash_profile and added
> /usr/local/apache-maven-3.5.3/bin
> "
>
> Might be a typo but there is one 'bin' missing from that path. Should
> probably be /usr/local/bin/apache-maven-3.5.3/bin
>
> br,
> Samuli
>
> > -----Original Message-----
> > From: Romanos Sklavenitis Pistofidis [mailto:[hidden email]]
> > Sent: 28. maaliskuutata 2018 17:02
> > To: Maven Users List <[hidden email]>
> > Subject: Re: Installation issue
> >
> > Hello,
> >
> > I actually extracted it inside /usr/local/bin. So, this is what I see:
> >
> > ls -l /usr/local/bin/apache-maven-3.5.3/bin
> > total 64
> > -rw-r--r--@ 1 romanos  admin   228 Feb 24 14:46 m2.conf
> > -rwxr-xr-x@ 1 romanos  admin  5741 Feb 24 14:46 mvn
> > -rw-r--r--@ 1 romanos  admin  6343 Feb 24 14:46 mvn.cmd
> > -rwxr-xr-x@ 1 romanos  admin  1485 Feb 24 14:46 mvnDebug
> > -rw-r--r--@ 1 romanos  admin  1668 Feb 24 14:46 mvnDebug.cmd
> > -rwxr-xr-x@ 1 romanos  admin  1532 Feb 24 14:46 mvnyjp
> >
> > I have sourced it and opened a new terminal. No difference.
> >
> > Thanks a lot!
> >
> > > On Mar 28, 2018, at 9:58 AM, Golan, Yaron <[hidden email]> wrote:
> > >
> > > ls -l /usr/local/apache-maven-3.5.3/bin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>