I think the suggestion by Greg to see about modifying the Maven batch
file so it drills up until it finds a pom.xml and then run your Maven
command against that pom is a very reasonable one.

I'm certain it would be welcomed functionality if you coded it up and
contributed it back! ;-)

Wayne

On 10/17/06, Kabe <[EMAIL PROTECTED]> wrote:
Thanks Dan and Wayne for your responses. I'll figure something out for
myself, or look at how this would be added to Maven directly. I'm very much
an IDE style person, but i also dig into my code via a shell from time to
time and it is a pain to have to care about where i am when i want to build
the code. This was a real useful feature when i used Ant and something i
thought had become sudo-standard with tools like this.

....
Kabe


On 10/17/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I don't disagree with you Dan, but want to point out:
> 1) the parentBaseDir discussion has been happening on Maven Dev and
> not Maven Users,
> 2) this is still very much a discussion point, far from being
> implemented and available in a publicly-available Maven release, and
> 3) the parentBaseDir parameter would not be helpful to this particular
> user, based on my understanding of the use case he's presented.
>
> He wants to call Maven to compile his project when he's in the
> directory /project/src/main/java/com/foo/bar, without changing
> directories into the /project directory to execute "mvn compile" and
> then cd'ing back to .../bar.
>
> I just don't want to get his hopes up... IMHO the best advice is to
> find another "solution" to this "problem".
>
> Wayne
>
> On 10/16/06, Dan Tran <[EMAIL PROTECTED]> wrote:
> > 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]
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to