Its possible to move the project file (I understand why you want that), but
not possible to move basedir. You'll have to edit project.xml and
project.properties to include '..'
Alternatively, you could set myBaseDir=${basedir}/.. And use ${myBaseDir}
instead of ${basedir} in your project.
- Brett
> -----Original Message-----
> From: Daniel Frey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 15 April 2004 5:53 PM
> To: 'Maven Users List'
> Subject: AW: how can I change ${basedir}
>
>
> Simple: because I have a project directory with a subdir for
> IDEA, Together and (hopefully) Maven, instead of having the
> project files cluttering around in the basedir. Therefore it
> would be nice not to have to change all settings when moving
> the project file but only one. I just wanna know whether this
> is possible and how it can be achieved.
> -- Daniel
> > -----Urspr�ngliche Nachricht-----
> > Von: Brett Porter [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 15. April 2004 02:27
> > An: 'Maven Users List'
> > Betreff: RE: how can I change ${basedir}
> >
> > I don't understand why you want this - putting .. In a lot of
> > places is not that much of a hassle and it is less confusing
> > that something that looks like a relative path but isn't
> > because of some magic override.
> >
> > - Brett
> >
> > > -----Original Message-----
> > > From: Daniel Frey [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, 15 April 2004 9:58 AM
> > > To: 'Maven Users List'
> > > Subject: how can I change ${basedir}
> > >
> > >
> > > I would be interested in the same subject. No response
> > since over one
> > > year on that?
> > >
> > > Daniel
> > >
> > > > Date: Mon, 17 Mar 2003 15:08:32 -0500
> > > > From: Justinus Menzel <[EMAIL PROTECTED]>
> > > > Subject: how can I change ${basedir}
> > > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > > >
> > > > Hi,
> > > >
> > > > I moved project.xml, maven.xml etc. into a seperate build
> > > directory.
> > > > Now I have to put a lot of "../" in places. Wouldn't it be
> > > easier to
> > > > just say basedir=..
> > > > in project.properties:
> > > > or
> > > > <baseDir>..</baseDir>
> > > > in the POM.
> > > > or
> > > >
> > > > maven -d ..
> > > > doesn't change ${basedir}, so I don't really know what it does.
> > > >
> > > > or
> > > > <project basedir=".."
> > > > ...
> > > > </project>
> > > > (like with ant)
> > > >
> > > > Any idea? Many thanks
> > > >
> > > > Justinus
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
>