You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matt Raible <ma...@raibledesigns.com> on 2004/07/13 15:43:31 UTC

Multi-Project for Eclipse and Directory Structure

I have a couple of questions about using the multi-project plugin.

1.  I'm basing my project structure off of the example at
(http://wiki.codehaus.org/maven/CreatingJ2eeApplications) because it's
Eclipse friendly.  However, it's unclear how I can manage my project
with Eclipse using this structure.  Do I type "maven eclipse" in the
basedir, the root dir or in each individual sub-project?  Can I use
Eclipse to manage the entire project or just sub-modules?

2.  My understanding of how to arrange xdocs is to put a couple of files
in root/xdocs that explains the entire project.  Then in
sub-project/xdocs is where I put more specific information about each
sub-project.  As far as I can tell, there's not magic that'll link the
top project to the sub-projects in navigation.xml - so I'm guessing I
have to manually specify links to the sub-project's pages.

Any recommended multi-project examples would be great.

Thanks,

Matt



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Multi-Project for Eclipse and Directory Structure

Posted by Joel Shellman <jo...@ikestrel.com>.
There is at least one plugin for eclipse that lets you bulk import projects.

http://eclipse-tools.sourceforge.net/projecttransfer/


Alex Shneyderman wrote:
> So it works with a little bit of work. What would definietely help is if
> Eclipse had a bulk import of projects, rather than one at a time. The
> rest of the procedures are fairly simple to do and do not take all that
> long.
> 
> Alex.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Multi-Project for Eclipse and Directory Structure

Posted by Alex Shneyderman <al...@law.columbia.edu>.
> I have a couple of questions about using the multi-project plugin.
> 
> 1.  I'm basing my project structure off of the example at
> (http://wiki.codehaus.org/maven/CreatingJ2eeApplications) because it's
> Eclipse friendly.  However, it's unclear how I can manage my project
> with Eclipse using this structure.  Do I type "maven eclipse" in the
> basedir, the root dir or in each individual sub-project?  Can I use
> Eclipse to manage the entire project or just sub-modules?

Just add this

    <preGoal name="eclipse">
        <maven:reactor
            basedir="${basedir}"
            includes="*/project.xml"
            excludes=""
            goals="eclipse"
            banner="Building"
            ignoreFailures="false"
            />
    </preGoal>

to maven.xml. This will generate all the .classpath and .propject files
in subdirectories when you run maven eclipse from your top level
project.

Then import each of the projects (Eclipse by the way does not let you
import proejcts in bulk, so this bit will be an ugly one depending on
how many subprojects you have). Once done with that just create the set
in eclipse to include all the projects projects and you get a pretty set
of subprojects related to your project. 

So it works with a little bit of work. What would definietely help is if
Eclipse had a bulk import of projects, rather than one at a time. The
rest of the procedures are fairly simple to do and do not take all that
long.

Alex.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org