Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven dependency type ejb vs jar

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>
like image 740
Chris311 Avatar asked Feb 16 '16 08:02

Chris311


Video Answer


1 Answers

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...).

like image 102
Tome Avatar answered Oct 17 '22 18:10

Tome