Sebb et al,

Maven can be installed in different places on different slaves, so it is
good
to be specific.

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


(the location mentioned is correct - for this slave, others may vary)

Gav...


> -----Original Message-----
> From: sebb [mailto:seb...@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.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