Generating a nice EAR artifact
Answered
Hi,
I'd really appreciate some help to generate an EAR artifact where my EJBs do not end up in the lib folders of my WARs.
I have a maven project and tried the skinnyWar configuration, but Intellij IDEA seems to have some problems with it:
https://youtrack.jetbrains.com/issue/IDEA-183998
https://youtrack.jetbrains.com/issue/IDEA-161416
I have tried the packagingExcludes configuration, but using this I also encounter some problems for which I created a new issue
https://youtrack.jetbrains.com/issue/IDEA-184065
Do you know of any alternatives I can try?
Please sign in to leave a comment.
Generate the artifacts with Maven and use External Source option for deployment.
That would mean I need to do a mvn package of my project before every deployment. It's a small project, so not really a problem for now.
I'll remove the building of the ear:ear artifact before launch, and replace it with a mvn package. See how that works.
I hope intellij will have better support for generating ear artifacts.
So far it works for deploying an ear, but if I redeploy the application from Intellij IDEA it still generates an incorrect ear artifact.
I was not able to find any options for what Intellij IDEA should do when redeploying an application.