Maven依赖类型ejb vs jar [英] Maven dependency type ejb vs jar

查看:104
本文介绍了Maven依赖类型ejb vs jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两者之间有什么区别

    <dependency>
        <groupId>groupId</groupId>
        <artifactId>artifactId</artifactId>
        <type>ejb</type>
    </dependency>

    <dependency>
        <groupId>groupId</groupId>
        <artifactId>artifactId</artifactId>
    </dependency>

提示:默认类型为jar.

Hint: Default type is jar.

推荐答案

Maven会触发不同的生命周期,具体取决于包装. 请参阅此处以获取捆绑的列表生命周期.

Maven will trigger a different lifecycle, depending on the packaging. See here for a list of bundled lifecycles.

在您的特定情况下,不同之处在于,它将使用jar作为包装而不是在package阶段在package阶段调用jar:jar目标,它将触发ejb:ejb一个目标,能够处理特定任务与EJB模块有关(客户端生成...).

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

这篇关于Maven依赖类型ejb vs jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆