permaculture playing cards*
The moose likes Ant, Maven and Other Build Tools and the fly likes Multi-module Maven project with Flat or Hierarchical structure? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Multi-module Maven project with Flat or Hierarchical structure?" Watch "Multi-module Maven project with Flat or Hierarchical structure?" New topic
Author

Multi-module Maven project with Flat or Hierarchical structure?

Tibi Kiss
Ranch Hand

Joined: Jun 11, 2009
Posts: 47
There are some pros and cons to choose Flat or Hierarchical maven project structure.

If I choose a hierarchical structure in the Eclipse environment with m2eclipse plugin, seems to have some problems when using CVS instead of SVN.
Several mounth I have been involved in using hierarchical multi-module maven projects with Subversion repository. On a different location now I have to use CVS and when I checkout a hierarchical multimodule project it seems that I have several problems.
The team would like to use flat structure which option seems to be reasonable choice if I consider the previously mentioned issue with CVS repo.

But I know that maven-release-plugin it has some issues on flat structured multi-module maven projects.

Since I never been used flat structured multi-module projects, I would like to ask you if you have experience with them.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

SVN does seem to lend itself better to hierarchical structure. It's not that you can't check out subtrees of CVS, but it's not as convenient.

When I did do complex projects in CVS, I made each module a separate project. That maps well in Eclipse where a CVS project and an Eclipse project are usually effectively the same thing.


Customer surveys are for companies who didn't pay proper attention to begin with.
Tibi Kiss
Ranch Hand

Joined: Jun 11, 2009
Posts: 47
Thank you!

At least now I have a feedback that not just for me it seems that it is related to CVS.
 
wood burning stoves
 
subject: Multi-module Maven project with Flat or Hierarchical structure?
 
Similar Threads
Modify build xml to replace words in an xml or properties file based on a text file
Why Maven?
SNAPSHOT dependencies - What if you're building a CVS tag?
using maven eclipse plugin in multimodule project
Problem with mvn archetype using Eclipse plugin