Search code examples
eclipsemavenear

Differenect ear from maven and eclipse


I have a maven project. Then I use mvn package, I get a ear file. I manually deploy it in WAS and it's worked.

But then I use Eclipse:

  1. Export -> EAR file and manually deploy it's not work
  2. Add project to WAS Server through Eclipse -> it's not work

What is the problem?


Solution

  • Project Properties>Deployment Assembly, check if Maven Dependencies are present It should look like: enter image description here

    If not present, add them via Add button.