You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ricardo de Souza Moura <ri...@hotmail.com> on 2004/09/14 22:13:55 UTC

multiproject eclipse

How are you doing to organize your eclipse projects to mapping your maven 
multiprojects ?
Are you doing one eclipse project for each maven subproject ?
Are you organizing the maven subprojects inside subdirectories on only one 
eclipse project ?

Does anybody use the mevenide eclipse plugin with mutliproject ? How are 
organized the projetc(s) ?

Thanks in advance

_________________________________________________________________
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br


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


Re: multiproject eclipse

Posted by Adam Fisk <af...@speedymail.org>.
My Eclipse projects map directly to my Maven projects.  To me, this 
makes a lot of sense because if you want your dependencies to be a 
certain way in Maven, you probably want them to be the same way in 
Eclipse and vice versa.  This allows Eclipse to properly recognize build 
errors if you attempt to access code in a project you maybe should not 
be creating a dependency on, for example.

This also makes it really easy for other programmers to get the code up 
and running in Eclipse with minimal configuration.  Use the "maven 
-Dgoal=eclipse multiproject:goal" command, and then use the Eclipse 
multiproject plugin to import all of the projects directly into 
Eclipse.  You can find this here:

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

Finally, it's useful to use the "eclipse.dependency" property in your 
project.xml, notifying Maven to make the dependency between Eclipse 
projects and not to a jar.  This way, code changed in one Eclipse 
project will depend on the code in the other project instead of the 
jar.  You can do this like the following, for example:

        <dependency>
            <groupId>myapp</groupId>
            <artifactId>myapp-client-util</artifactId>
            <version>0.1</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
                ***<eclipse.dependency>true</eclipse.dependency>***
            </properties>
        </dependency>

Hope that helps.

-Adam


Ricardo de Souza Moura wrote:

> How are you doing to organize your eclipse projects to mapping your 
> maven multiprojects ?
> Are you doing one eclipse project for each maven subproject ?
> Are you organizing the maven subprojects inside subdirectories on only 
> one eclipse project ?
>
> Does anybody use the mevenide eclipse plugin with mutliproject ? How 
> are organized the projetc(s) ?
>
> Thanks in advance
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.  
> http://messenger.msn.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: multiproject eclipse

Posted by Philippe Monnet <pf...@ameritech.net>.
Ricardo,

See http://wiki.codehaus.org/maven/CreatingEjbApplications .
It addresses specifically how to create a multiproject structure 
compatible with Eclipse.
The net net is that both the parent and the children directories are at 
the same level (as opposed to the children being subdirectories of the 
parent):
   ./parent
   ./child1
   ./child2
The project.xml of the children refers to the parent using a relative 
path (../parent)

Philippe

Ricardo de Souza Moura wrote:

> How are you doing to organize your eclipse projects to mapping your 
> maven multiprojects ?
> Are you doing one eclipse project for each maven subproject ?
> Are you organizing the maven subprojects inside subdirectories on only 
> one eclipse project ?
>
> Does anybody use the mevenide eclipse plugin with mutliproject ? How 
> are organized the projetc(s) ?
>
> Thanks in advance
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.  
> http://messenger.msn.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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