On 28 February 2012 19:17, Konstantin Kolinko <knst.koli...@gmail.com> wrote:
> 2012/2/28 sebb <seb...@gmail.com>:
>> On 28 February 2012 13:17, sebb <seb...@gmail.com> wrote:
>>> JMeter needs to know the Maven home directory in order to upload snapshots.
>>>
>>> However the standard M2_HOME env. variable [1] does not seem to be set.
>>>
>>> Is Maven installed in a standard location?
>>>
>>> I suppose the build file could be updated to run "mvn -v" in a shell
>>> and extract the home directory, but that seems rather crude, and
>>> error-prone.
>>
>> [And Maven 2.2.1 does not display the home directory anyway]
>>
>>> [1] http://maven.apache.org/download.html#Installation
>
> Looking at some other build that already uses Maven:
>
> http://ci.apache.org/builders/rat_trunk/builds/200/steps/compile/logs/stdio
>
>>  M2=/usr/local/apache-maven/current/bin
>>  M2_HOME=/usr/local/apache-maven/current
>
> I do not know whether it helps.

Thanks, I'll try that and see.

> Are you able to start mvn, or you cannot just because M2_HOME is not set?

I am using Ant to run Maven using Java, and so need to know where the
Maven jar is.

Long story, but cannot use Maven Ant Tool, and shell invocation is not ideal.

> Best regards,
> Konstantin Kolinko

Reply via email to