On Wed, 2006-04-19 at 12:43 +0200, Sharma, Jaikumar wrote: > Dear Maven Users! > > M2 build produces standard directory structure as a result of build > process, is it possible to override the same and customize ------- compile, > package, JAR, WAR, JavaDocs etc to the folder structure as per the > organization specific directory standard ? or is it customizable in POMs ?
Yes, Maven2 can be configured via the POM to handle just about any directory structure. Of course that's more complicated than using the standard structures, but it's not too bad. See the documentation on the maven site for: <sourceDirectory> <testSourceDirectory> <outputDirectory> etc as well as config attributes for specific plugins. This page lists all the possible xml elements in a POM: http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html One thing you will find very hard to work against, though, is maven's desire to create one "artifact" (eg jar or war) per pom.xml file. Even that's possible to work around in some cases, but only with significant effort. There are very good reasons for maven's approach here of course. So in practice if you want to apply Maven to existing projects you are likely to need to make at least some changes in the project structure. If you're just starting with maven2 then there's a great maven2 book available via the mergere.com site: http://www.mergere.com/products.jsp Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
