Hi David,

I think you nearly get the point.
Your idea is fine of what to do.
But i would have adde a pom.xml file in 'somedir'
of packaging type 'pom' in which i would have defined
3 modules.
And in each of the 3 modules' poms, i would have refeerenced
the somedir's pom as parent.

For a good idea of a multi module project, you could refer to platina:
http://platina.svn.sf.net/svnroot/platina/platina-archetype/

Hope this helps.

Raphaël

2008/10/16, David Ojeda <[EMAIL PROTECTED]>:
> Hello all,
>
>  I have never worked with maven before, but I have read about it and seems
>  interesting. I have tested it with wicket, gwt, j2ee and webapp archetypes 
> and
>  I found that maven could be a huge time saver for the projects in the company
>  I am working for.
>  I have a particular project structure that I wish to migrate to maven.
>  Currently I use ant for these. I read the documentation on goals, phases, 
> pom,
>  etc, and was hoping you could give me some ideas or show me the right path.
>
>  Here is a subset of my problem:
>  I have three products that I am working on. A set of classes that help the
>  developer fetch info from databases, manage configurations, etc. A set of
>  classes that encapsulate communication with webservices. And a web
>  application. Let's call them:
>  - UtilLibraries
>  - WSClients
>  - WebApplication
>
>  WebApplication uses UtilLibraries and WSClients. WSClients uses UtilLibraries
>  as well. UtilLibraries just has some external dependencies like log4j.
>
>  How should I organize these projects?
>  Here is my idea:
>  - each project should be created with its archetype on somedir/UtilLibraries,
>  somedir/WSClients and somedir/WebApplication respectively
>  - WebApplication's pom.xml should state that it depends on UtilLibraries and
>  WSClients. WSClients' pom.xml should state that it depends on UtilLibraries
>  - The directory somedir/ should be version controlled with, say, svn or cvs.
>  - A developer checkouts somedir/
>  - If the developer wishes to develop on WebApplication, he should mvn install
>  its dependencies in order to copy them in .m2/repositories
>
>  What do you think? What is your experience with these kind of projects?
>  I am pretty sure my idea is not maven-ish since I don't have any experience
>  with this system.
>
>  Thank you
>
>
>  --
>  David Ojeda
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to