- This topic has 4 replies, 2 voices, and was last updated 13 years, 8 months ago by
Jagov.
-
AuthorPosts
-
JagovMemberWe are using maven to build our product. But it looks like the maven van myeclipse settings are completely out of sync with maven. The module is not added to the pom if we add a module to the ear project (with maven dependency management) via the myeclipse menu. The other way around is also out of sync. The modules are not added if we add a module to the pom, and update the project settings.
Is this a bug or are we doing something wrong?
support-tomaszMemberCan You please describe, which Menu item exactly You are using to add modules to the pom. Is this function Maven4MyEclipse->New Maven Module Project?
JagovMemberThanks for the fast reply,
No i’ll use MyEclipse -> Add and Remove Modules, as the New Maven Module Project creates a new project. And i want to select a ejb or web project that is already present in the workspace (or in the maven repository).
support-tomaszMemberAt this moment it is possible to add new Maven Modules over Maven4MyEclipse->New Maven Module Project. You can add modules to Your EAR Project pom.xml like in example below:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version> for example 2.6 </version>
<configuration>
<modules>
<webModule>
<groupId>example group Id</groupId>
<artifactId> example artifact </artifactId>
</webModule>
<ejbModule>
<groupId>example group id</groupId>
<artifactId>example artifact </artifactId>
</ejbModule>
</modules>
</configuration>
</plugin>
Is there any other way I can help?
JagovMemberThat is correct. But MyEclipse nighter generates, updates or read the module configuration from the pom.xml
The project does work with a default eclipse and m2eclipse with wtp
I’ll try to create a sample project that can be used to reproduce the problem.
-
AuthorPosts