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 23:14:22 GMT
On 28 February 2012 22:46, Gavin McDonald <gavin@16degrees.com.au> wrote:
>
>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Wednesday, 29 February 2012 7:31 AM
>> To: builds@apache.org; gavin@16degrees.com.au
>> Subject: Re: [Buildbot] value for M2_HOME (maven.home) ?
>>
>> On 28 February 2012 21:19, Gavin McDonald <gavin@16degrees.com.au>
>> wrote:
>> > Sebb et al,
>> >
>> > Maven can be installed in different places on different slaves, so it
>> > is good to be specific.
>>
>> Is there a document that describes where to find things on each slave?
>
> No, with over 30 slaves and different admins installing stuff all the time,
> I
> fear it would be a nightmare to keep updated. Ideas welcome.
>
>>
>> > Also, it is not always appropriate to set M2_HOME in the env of the
>> > machine or buildbot user on a  build machine as there be several Maven
>> > versions installed at one time.
>> >
>> > Feel free to set M2_HOME in the buildbot settings for your builds. For
>> > example look where ANT_HOME has been set in the env for your build in
>> > your jmeter.conf
>>
>> OK, I see.
>>
>> I already used an Ant property instead, but that could be converted to an
> env
>> variable.
>
> The Ant property you set was in an addStep env, in other words, properties
> set
> on one step don’t necessarily flow through to the next step.

I know; in this case it's only needed for that task invocation.

> Variables
> and/or
> env args you want available to a whole build should instead be added to the
> builder env, or use WithProperties etc.
>
> Gav...
>
>>
>> >
>> > (the location mentioned is correct - for this slave, others may vary)
>> >
>> > Gav...
>> >
>> >
>> >> -----Original Message-----
>> >> From: sebb [mailto:sebbaz@gmail.com]
>> >> Sent: Wednesday, 29 February 2012 6:38 AM
>> >> To: builds@apache.org
>> >> Subject: Re: [Buildbot] value for M2_HOME (maven.home) ?
>> >>
>> >> 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/lo
>> >> > gs/
>> >> > 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