facebook

Maven and EAR out of sync

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #317672 Reply

    Jagov
    Member

    We 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?

    #317679 Reply

    Can You please describe, which Menu item exactly You are using to add modules to the pom. Is this function Maven4MyEclipse->New Maven Module Project?

    #317685 Reply

    Jagov
    Member

    Thanks 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).

    #317697 Reply

    At 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?

    #317734 Reply

    Jagov
    Member

    That 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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Maven and EAR out of sync

You must be logged in to post in the forum log in