Hello Ron,

As far as I understand it maven uses MAVEN_HOME internally. However it will 
deduce and then overwrite the value based on the scripts execution path. So it 
can be pretty confusing when the PATH finds one version and you MAVEN_HOME 
points to another. If both agree, then there is no problem to use it (although  
its not documented to be a possible external config).

(Having said that, I am not sure if things changed since .mvn/  was added to 
the mix. I do think maven-invoker is overwriting it, so at least child mavens 
are robust against a (wrong) HOME).

Gruss
Bernd

-- 
http://bernd.eckenfels.net

-----Original Message-----
From: Ron Wheeler <rwhee...@artifact-software.com>
To: Maven Users List <users@maven.apache.org>
Sent: Do., 15 Okt. 2015 22:31
Subject: Re: Cannot seem to install Maven on Windows 7 64-bit

I have always used MAVEN_HOME and added it to the path.
When I switch Maven versions it is easier to find the Environment 
variable rather than looking through several hundred characters in PATH.
Same for all of the other software.
Makes PATH a lot shorter and easier to read.

Any reason why you recommend against this?
Would another name be be better?

Ron

On 15/10/2015 3:50 PM, Karl Heinz Marbaise wrote:
> Hi,
>
> first dont use "maven --version" as command cause maven will be called 
> by: "mvn --version" instead...
>
> Furthermore you should not use MAVEN_HOME environment variable...only 
> add the bin folder of the distribution (apache-maven-3.3.3/bin) to the 
> PATH of your windows system....
>
> Don't forget to close and reopen the console...and then check it...
>
>
> Kind regards
> Karl Heinz Marbaise
> On 10/15/15 9:45 PM, Cai Black wrote:
>> [RESOLVED] OK, so, apparently this is an issue with Maven 3.3.3, and 
>> when I downgraded to Maven 3.2.5, everything worked as expected.
>>
>> Christopher (Cai) Black
>> Mgr. Software Development
>>
>> RigNet
>> 1880 S. Dairy Ashford, Suite 300 | Houston, TX  77077- 4760 | USA
>> Tel: +1.281.674.0717 | Mobile: +1.832.439.8134 | Fax: +1.281.674.0101
>> Email: christopher.bl...@rig.net<mailto:christopher.bl...@rig.net>
>> www.rig.net<http://www.rig.net/>
>>
>> From: Cai Black
>> Sent: Thursday, 15 October 2015 14:22
>> To: 'users@maven.apache.org'
>> Subject: Cannot seem to install Maven on Windows 7 64-bit
>>
>> Hi, all.
>>
>> I did the following:
>>
>> * installed jdk-8u60-windows-x64
>>
>> "java -version" output:
>> C:\>java -version
>> java version "1.8.0_60"
>> Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
>>
>> * extracted the ZIP into C:\maven
>> * added the following environment variable: MAVEN_HOME = C:\maven
>> * appended the following to the PATH: %MAVEN_HOME%\bin
>>
>> "maven -version" outputs the same thing as "java -help" instead of 
>> the expected "Apache Maven 3....." stuff.
>>
>> Any thoughts here?
>>
>> Christopher (Cai) Black
>> Mgr. Software Development
>>
>> RigNet
>> 1880 S. Dairy Ashford, Suite 300 | Houston, TX  77077- 4760 | USA
>> Tel: +1.281.674.0717 | Mobile: +1.832.439.8134 | Fax: +1.281.674.0101
>> Email: christopher.bl...@rig.net<mailto:christopher.bl...@rig.net>
>> www.rig.net<http://www.rig.net/>
>>
>>
>>
>>
>> ******* Important Notice *********
>> This e-mail may contain information that is confidential, privileged or
>> otherwise protected from disclosure. If you are not an intended 
>> recipient of
>> this e-mail, do not duplicate or redistribute it by any means. Please 
>> delete it
>> and any attachments and notify the sender that you have received it 
>> in error.
>> Unintended recipients are prohibited from taking action on the basis of
>> information in this e-mail.
>>
>> E-mail messages may contain computer viruses or other defects, may 
>> not be
>> accurately replicated on other systems, or may be intercepted, 
>> deleted or
>> interfered with without the knowledge of the sender or the intended 
>> recipient.
>> If you are not comfortable with the risks associated with e-mail 
>> messages, you
>> may decide not to use e-mail to communicate with RigNet.
>>
>> RigNet reserves the right, to the extent and under circumstances 
>> permitted by
>> applicable law, to retain, monitor and intercept e-mail messages to 
>> and from
>> its systems.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to