maven 2 parent pom and eclipse project structure [message #184681] |
Thu, 14 December 2006 07:32  |
Eclipse User |
|
|
|
Hello,
I'm struggling using maven2 project structure with eclipse (3.2.1) project
structure.
Here is my wish:
project
|
|- projectManagement/
|- pom.xml (parent pom)
|- module1/
| |
| |- pom.xml
| |- ..
|- module2/
|
|- pom.xml
|- ..
Where as *projectManagement* contains stuff that is not necessary to build
the system.
I want *project* to be an eclipse project under version control.
Using mvn eclipse:eclipse inside *project* creates two eclipse projects:
one for module1 and one for module2.
Importing the two projects, the eclipse navigator or package explorer
looks like this:
|- module1/
|- module2/
What should I do next?
As mentioned above, I want to have the parent pom and some general stuff
under version control as well.
When I now create a simple project for directory *project*, I got the
problem, that module1 and module2 are included.
I don't want a flat project/pom structure. Is there a way to have a kind
of "eclipse-project-contains-eclipse-project"?
I've heard about the flexible project structure but didn't get it.
How do you using a parent pom structure in conjunction with eclipse?!
Please give me your experience / best practices.
Thanks in advance, Leif
|
|
|
|
|
|
|
|
|
Re: maven 2 parent pom and eclipse project structure [message #185113 is a reply to message #185042] |
Fri, 15 December 2006 16:23  |
Eclipse User |
|
|
|
Konstantin Komissarchik wrote:
> Multiple modules per Eclipse project is a proven bad approach that WTP
> community has struggled with for a long time and finally abandoned.
> There are no plans to go back to it.
Konstantin, I was referring not to multiple modules, but to API or
some other way to dynamically create and register WTP-specific stuff.
Currently we can't tell WTP how dependencies should be packaged
without duplicating the same information in several places and in my
opinion it is a huge extensibility limitation of the WTP as a platform.
regards,
Eugene
|
|
|
Powered by
FUDForum. Page generated in 0.07123 seconds