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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to