there is some talk to provide ${parentBasedir} by maven

please check the archive
-D

On 10/16/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

I don't believe this functionality exists. At least, I've never heard
of it being available, nor have I seen any such request on this
mailing list.

I would perhaps create an alias to "set myvar='pwd'; cd {parent}; mvn
package; cd myvar;" or something along those lines, if you are
unable/unwilling to keep a console of your project root open all the
time.

Wayne

On 10/16/06, Kabe <[EMAIL PROTECTED]> wrote:
> I've searched the archives and the docs but have come up short on any
> information for my issue (if i missed it, please point me to the correct
> thread/doc). I'm trying to find out how to run 'mvn' in a similar way to
how
> i used to run 'ant', in that i was able to run it from some sub
directory of
> my project (for example, if i am in <project>/src/main/java/com/foo/bar)
and
> it will recursively check the current directory and all parent
directories
> until it locates the build file (pom.xml for maven of course) and then
run
> from that directory. Is this available with Maven? Without this, i have
to
> either keep a console on my project root so i can build, or move to the
> project root every time i want to build. This seems like something
everyone
> else would come across as well, so figured there might be an option for
this
> type of behavior that i have just not come across. Any help would be
great,
> thanks.
>
> ....
> Kabe
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to