How to setup Java EE maven project in Eclipse?

I know Maven well, but I usually work with Netbeans, which simplifies the deployment of Java EE applications - and handles the hot deployment of any changes.

The team I'm working with now uses Eclipse as their IDE of choice, but none of them have worked with Maven projects before; so I need to know how to properly add the face of an Eclipse project to the maven projects that we have in order to support (hot) deployment via WTP. We are using Weblogic 12c for this particular project.

Our project layout is as simple as it is:

super-project (pom)
    project-ear (pom)
    project-ejb (pom)
    project-web (pom)

Thanks for any resource you can point me to.

+5
source share
2 answers

, Eclipse. @Michał Politowski, M2E, M2E-WTP ..

  • File ---> New ---> Other.
  • Select Wizard Windows Maven ---> Project.
  • "" , New Maven Project.
  • Filter pom
  • org.codehaus.mojo.archetypes:pom-root:1.1
  • "" , .

  • New ---> Other.
    • Select Wizard Windows Maven ---> Project.
  • "" , New Maven Project.
  • , Parent Project= MY PARENT
  • Module name, . my-ear, my-ejb my-ear. Next,
  • Filter
    • org.codehaus.mojo.archetypes:webapp-javaee6:1.5
    • org.codehaus.mojo.archetypes:ejb-javaee6:1.5
    • org.codehaus.mojo.archetypes:ear-javaee6:1.5
  • "" , .

NetBeans 7.x Eclipse Juno. Eclipse, , . NetBeans Eclipse.

, .

+13

:

Right click at the parent project and select New ---> Other.
    At the Select Wizard Windows, select Maven ---> **Maven Module**

.

+5

All Articles