On Thursday, August 14, 2003, at 09:22 pm, Andy Jefferson wrote:

On Thursday 14 Aug 2003 21:13, Jason Dillon wrote:
Sure, tell me how it works :-)

Having just tried it on geronimo, it seems to have complaints with the
geronimo layout of projects :-0. The intention with Maven (based on all
projects i've seen, and what the Maven developers say) is that you have a
top-level project, and sub-projects off that - and the multiproject plugin
seems to need this (understandably when you know how it does its work).
However with geronimo it seems to be structured to have the "main" project
off in a etc directory for some reason.


What is supposed to happen is, you do a 'maven multiproject' and it goes
through the directories and finds sub-projects, and does site:generates in
all, building the full site documentation in the top-level "target"
directory. It will put links from the top-level project down to the
sub-projects (but not back up to the top-level from sub-projects yet). The
thing you need to add to the top-level "project.properties" is


maven.multiproject.excludes=project.xml

This will exclude the top-level project from the sub-projects search (because
the plugin doesn't support that yet).


The only problem you've got is that the current geronimo project structure
doesn't have the main project at the top-level ! :-( Is there a good reason
why its up in the etc directory ?


It does have a top level project.

        cd geronimo
        maven build

Its just there are common shared stuff for all projects in geronimo/etc.

If this causes a problem the shared stuff could go in the root directory. Though the use of reactor in the root project (in maven.xml inside geronimo) is working fine.

James
-------
http://radio.weblogs.com/0112098/



Reply via email to