What is the difference between
<dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<type>ejb</type>
</dependency>
and
<dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<type>jar</type>
</dependency>
Maven will trigger a different lifecycle, depending on the packaging. See here for a list of bundled lifecycles.
In your particular case, the difference will be that, instead of calling the jar:jar
goal during the package
phase when using jar
as packaging, it will trigger the ejb:ejb
one, capable of handling specific tasks related to an EJB module (client generation...).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With