www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Buildbot] value for M2_HOME (maven.home) ?
Date Tue, 28 Feb 2012 20:37:59 GMT
On 28 February 2012 19:17, Konstantin Kolinko <knst.kolinko@gmail.com> wrote:
> 2012/2/28 sebb <sebbaz@gmail.com>:
>> On 28 February 2012 13:17, sebb <sebbaz@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

Mime
View raw message