Support multiple child module pom's in the same directory?

2007-06-06 Thread Deacon, Brian
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--
modulefoo/bar/module

!--To use foo/bar/SiblingPom.xml--
modulefoo/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Support multiple child module pom's in the same directory?

2007-06-06 Thread Wayne Fay

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 [EMAIL PROTECTED] 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--
modulefoo/bar/module

!--To use foo/bar/SiblingPom.xml--
modulefoo/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: Support multiple child module pom's in the same directory?

2007-06-06 Thread Deacon, Brian
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:[EMAIL PROTECTED] 
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 [EMAIL PROTECTED] 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--
 modulefoo/bar/module

 !--To use foo/bar/SiblingPom.xml--
 modulefoo/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: [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]