JEE project structure for an Eclipse user moving to IntelliJ

Answered

I think I almost understand how to do this but I am stuck on one point.

In Eclipse I am used to creating  an EJB.jar project, a WEB.war project, and referencing them in a JEE.ear project in which I will define and create my EAR.  When I deploy to the app server, I am deploying the EAR explicitly.  (All projects are Maven, btw).

So I understand that eclipse projects are usually equivalent to IntelliJ modules, but my question is this:  using IntelliJ for a JEE project, do I create a project that corresponds to my Ellipse JEE.ear project and add the EJB.jar and WEB.war projects as modules, OR should I create a new IntelliJ "umbrella" project and add the eclipse EAR, EJB.jar and Web.war projects as three modules to the "master" IntelliJ project?

0
1 comment

It's essentially the same since you will have 3 modules anyway. If your project is Maven based, just importing it should configure everything automatically. Packaging will be visible inside artifact configuration: https://www.jetbrains.com/help/idea/artifacts.html. Artifacts will be generated automatically after importing from Maven.

0

Please sign in to leave a comment.