You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Deacon, Brian" <Br...@intuit.com> on 2007/06/06 21:12:33 UTC
Support multiple child module pom's in the same directory?
Hi all,
For reasons that are un-mavenish and evil and will eventually be solved
with a source code reorganization, I am stuck with having to try to
build two separate modules that sit in the same source tree. What I'd
like to do in the parent multi-module pom is this:
<modules>
<!--To use foo/bar/pom.xml-->
<module>foo/bar</module>
<!--To use foo/bar/SiblingPom.xml-->
<module>foo/bar/SiblingPom.xml</module>
</modules>
But when I try to build this, it looks for
foo/bar/SiblingPom.xml/pom.xml
I'm hoping this is just me not using the right syntax. Or is there a
workaround I need for this?
This is 2.0.6, btw.
TIA,
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Support multiple child module pom's in the same directory?
Posted by "Deacon, Brian" <Br...@intuit.com>.
So the current implementation requires that a child pom module MUST be
in a file named pom.xml?
Just trying to understand... And thank you very much for the quicky
reply.
Brian
-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com]
Sent: Wednesday, June 06, 2007 12:40 PM
To: Maven Users List
Subject: Re: Support multiple child module pom's in the same directory?
This is not possible.
However, you can run "mvn -f siblingpom.xml" from the foo/bar directory
and Maven will execute using that pom rather than the default pom.xml in
the directory.
Wayne
On 6/6/07, Deacon, Brian <Br...@intuit.com> wrote:
> Hi all,
>
> For reasons that are un-mavenish and evil and will eventually be
> solved with a source code reorganization, I am stuck with having to
> try to build two separate modules that sit in the same source tree.
> What I'd like to do in the parent multi-module pom is this:
>
> <modules>
> <!--To use foo/bar/pom.xml-->
> <module>foo/bar</module>
>
> <!--To use foo/bar/SiblingPom.xml-->
> <module>foo/bar/SiblingPom.xml</module>
>
> </modules>
>
>
> But when I try to build this, it looks for
> foo/bar/SiblingPom.xml/pom.xml
>
> I'm hoping this is just me not using the right syntax. Or is there a
> workaround I need for this?
>
> This is 2.0.6, btw.
>
> TIA,
>
> Brian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Support multiple child module pom's in the same directory?
Posted by Wayne Fay <wa...@gmail.com>.
This is not possible.
However, you can run "mvn -f siblingpom.xml" from the foo/bar
directory and Maven will execute using that pom rather than the
default pom.xml in the directory.
Wayne
On 6/6/07, Deacon, Brian <Br...@intuit.com> wrote:
> Hi all,
>
> For reasons that are un-mavenish and evil and will eventually be solved
> with a source code reorganization, I am stuck with having to try to
> build two separate modules that sit in the same source tree. What I'd
> like to do in the parent multi-module pom is this:
>
> <modules>
> <!--To use foo/bar/pom.xml-->
> <module>foo/bar</module>
>
> <!--To use foo/bar/SiblingPom.xml-->
> <module>foo/bar/SiblingPom.xml</module>
>
> </modules>
>
>
> But when I try to build this, it looks for
> foo/bar/SiblingPom.xml/pom.xml
>
> I'm hoping this is just me not using the right syntax. Or is there a
> workaround I need for this?
>
> This is 2.0.6, btw.
>
> TIA,
>
> Brian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org