January 24, 2008
The last post was a long time ago but we have not been lazy since then and that is why our project and the documentation are nearly complete. We plan to release versions of the banner management and the image gallery in the first half of February. So stay tuned!
In the last days I suffered from maven site generation and I had to conclude that correct multi project site generation is not possible when the projects are not laid out in an hierarchical manner. That means the following in short:
Arranging of projects like this works:
spcp7 \ image-gallery \ image-gallery-war \ another sub project \ bannermanagement
This does not work (projects on the same level in the file system):
So if you plan to do a maven multi project build which will be used for site generation later do NOT under NO circumstances try to arrange your projects on the same level. Always use a hierarchical structure as it is proposed in the Maven guide. If you do not do this you will get terrible problems with paths and reporting (especially concerning the subversion changelog).
If you want to use a hierarchical multi project in eclipse just lay out the projects in maven manner, generate the eclipse project files with
mvn eclipse:clean eclipse:eclipse
and import the projects with the help of the m2eclipse plugin from codehaus. Currently the m2eclipse import does not work well when your project hierarchy lies within the workspace. Just put it outside for a first test.
After that commit the whole structure to your version management system check it out as new into your workspace after that and do the project importing with the m2eclipse plugin and everything will work fine. Cost me more than a day to find this out. So hopefully you will get this working with this small guide a bit faster.