On Thu, 18 Aug 2011 14:00:26 -0500
Wayne Fay <[email protected]> wrote:

> > I guess this has been asked before, but is there any way to
> > gracefully handle situations in a multi-level modular project where
> > the artifactId does not always correspond to the folder name of the
> > module?
> 
> Maven operates under certain conventions. This is not the convention,
> thus it is not well supported.
> 
> > parent with "/childWithOtherName" appended, and there is no way I
> > can force it to use "/childB", unless I specify the whole path,
> > which is tedious with large projects.
> 
> This is the "not well supported" aspect. I'm not even sure how good of
> an idea this is. Why can't you just change the artifactId or the
> module name??
Well, I'll resort to this, but it is quite cumbersome. On artifact
level, groupId+artifactId is a unique id, but effectively,
only artifactId needs to be unique (resulting filenames are only
constructed from the artifactId). So I could have

+/           = org.test:parent
+/ejb        = org.test.parent:ejb
+/ejb/common = org.test.parent.ejb:common-ejbs
+/war        = org.test.parent:war
+/war/common = org.test.parent.war:common-wars

but I really am forced to use the unique artifactId in the directory as
well:

+/                = org.test:parent
+/ejb             = org.test.parent:ejb
+/ejb/common-ejbs = org.test.parent.ejb:common-ejbs
+/war             = org.test.parent:war
+/war/common-wars = org.test.parent.war:common-wars

This is just duplicate information and strange, but that's like it with
conventions...

Thanks for your comments,

Stefan

> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 



-- 
best regards,

Stefan Seidel
Software  developer
________________________
VUB Printmedia GmbH
Chopinstraße 4, 04103 Leipzig
tel.    +49 (341) 9 60 50 93
fax.    +49 (341) 9 60 50 92
mail.   [email protected] 
web.    www.vub.de

VUB Printmedia GmbH
HRB Köln 24015
GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to