gpt4 book ai didi

Maven 依赖类型 ejb 与 jar

转载 作者:行者123 更新时间:2023-12-02 12:48:44 25 4
gpt4 key购买 nike

有什么区别

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

    <dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<type>jar</type>
</dependency>

最佳答案

Maven 将触发不同的生命周期,具体取决于打包。请参阅here获取捆绑生命周期的列表。

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

关于Maven 依赖类型 ejb 与 jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35427234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com