Maven child projects, Eclipse and Team CVS

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven child projects, Eclipse and Team CVS

Eduardo M KALINOWSKI-4
This is not really a m2eclipse question, but since it involves working  
with Maven projects under Eclipse, I believe someone here should have  
some tips.

I created some projects using the recommended Maven structure:

Parent-project
  |-- module1
  |   `-- pom.xml
  |-- module2
  |   `-- pom.xml
  `-- pom.xml

I imported them into Eclipse, and everything worked fine: both the  
parent and the modules were imported. However, since the modules  
(where work is actually done) are physically inside the  
Parent-project, two problems arise:

- When looking for a file, the file appears twice: once for the  
project it lives in, another for the parent-project.

- And what's worse is when using CVS Team Synchronization. Some files  
appear twice, and this confuses Eclipse a lot.

I found an option under Preferences->Maven "Hide folders of physically  
nested modules (experimental)", but it did not appear to change  
anything.

How do you deal with situations like this? I could move the  
parent-project to another directory beside the modules, but I wonder  
if there is another solution.


--
Long computations which yield zero are probably all for naught.

Eduardo M KALINOWSKI
[hidden email]


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Maven child projects, Eclipse and Team CVS

Fred Bricon
delete (not physically) your projects then import them back as maven projects.
"Hide folders of physically nested modules (experimental)" will then work.

regards,

Fred Bricon

On Fri, Mar 26, 2010 at 12:33 PM, Eduardo M KALINOWSKI <[hidden email]> wrote:
This is not really a m2eclipse question, but since it involves working with Maven projects under Eclipse, I believe someone here should have some tips.

I created some projects using the recommended Maven structure:

Parent-project
 |-- module1
 |   `-- pom.xml
 |-- module2
 |   `-- pom.xml
 `-- pom.xml

I imported them into Eclipse, and everything worked fine: both the parent and the modules were imported. However, since the modules (where work is actually done) are physically inside the Parent-project, two problems arise:

- When looking for a file, the file appears twice: once for the project it lives in, another for the parent-project.

- And what's worse is when using CVS Team Synchronization. Some files appear twice, and this confuses Eclipse a lot.

I found an option under Preferences->Maven "Hide folders of physically nested modules (experimental)", but it did not appear to change anything.

How do you deal with situations like this? I could move the parent-project to another directory beside the modules, but I wonder if there is another solution.


--
Long computations which yield zero are probably all for naught.

Eduardo M KALINOWSKI
[hidden email]


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: Maven child projects, Eclipse and Team CVS

Eduardo M KALINOWSKI-4
On Sex, 26 Mar 2010, Fred Bricon wrote:
> delete (not physically) your projects then import them back as maven
> projects.
> "Hide folders of physically nested modules (experimental)" will then work.

Thanks, that worked for file searching.

CVS synchronization is still confused. Perhaps it's because I'm using  
m2eclipse 0.9.9 (we need AJDT integration).


--
<james> Are we going to make an emacs out of apt?
         APT - Debian in a program.  It even does your laundry
                -- Seen on #Debian

Eduardo M KALINOWSKI
[hidden email]


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email