If you declare a dependency in Maven, you can add a type, like war, jar, ejb.
I understand that compiling a project with type ejb is different from compiling a project with type jar because it triggers a different lifecycle.
But what is the difference in declaring a dependency?
Maven dependency type ejb vs jar seems to ask the same question, but the accepted answer seems strange to me. I doubt that a type in a dependency can trigger a lifecycle. Actually, I would expect that type ejb and type jar do exactly the same thing. Can somebody shed light on this?