Is there a way to use the Eclipse plugin to rebuild the .project files but not make new ones if not present?
I'd like to run a generic command from the root of the modules that adds the project dependencies to newly imported (by "imported" I mean mvn eclipse:eclipse has been run) for previously imported projects without having to do it individually for each or unintentionally import everything.
Example, say I have a multi module project like this.
- Parent
- Foo
- Foobly (newly imported)
- Fooble (not imported)
- Bar
- Barbly (previously imported, depends on Foobly)
- Barble (not imported)
- Foo
From Parent, is there some command I can run that will add the project Foobly as a dependency in Eclipse to Barbly so when I view source it opens that projects .java files instead of M2's .class files without adding the .project, .classpath, etc. to Fooble and Barble.
Also, for what it's worth, I'm not talking about m2eclipse, the Eclipse plugin for Maven, I am talking about the Maven plugin maven-eclipse-plugin. This is sort of a moot point because m2eclipse doesn't use mvn eclipse:eclipse, but I just wanted to clarify.