有什么区别
<dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<type>ejb</type>
</dependency>
and
<dependency>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<type>jar</type>
</dependency>
Maven 将触发不同的生命周期,具体取决于包装。
看here https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings获取捆绑生命周期的列表。
在您的特定情况下,区别在于,而不是调用jar:jar
期间的目标package
使用时的阶段jar
作为包装,它会触发ejb:ejb
一,能够处理与 EJB 模块相关的特定任务(客户端生成...)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)