【问题标题】:What is the difference between the dependency types ejb and ejb-client依赖类型 ejb 和 ejb-client 有什么区别
【发布时间】:2014-12-31 02:16:01
【问题描述】:

如果你在 pom.xml 中包含一个依赖项有什么区别

<dependency>
    <groupId>group.Id</groupId>
    <artifactId>artifact.Id</artifactId>
    <type>ejb-client</type>
    <scope>runtime</scope>
</dependency>

<dependency>
    <groupId>group.Id</groupId>
    <artifactId>artifact.Id</artifactId>
    <type>ejb</type>
    <scope>runtime</scope>
</dependency>

【问题讨论】:

    标签: maven dependencies pom.xml


    【解决方案1】:

    ejb 类型是指包含 ejb 接口和实现、配置文件等的 jar 文件。

    ejb-client 类型是指仅包含 ejb 接口类的 jar 文件。 IE。只需要 ejb 的客户端调用它。

    maven-ejb-plugin 在其配置中有默认或自定义,允许从客户端排除 EJB 实现类。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-18
      • 1970-01-01
      • 2015-05-01
      • 2017-04-16
      • 2011-12-20
      • 1970-01-01
      • 1970-01-01
      • 2013-01-05
      相关资源
      最近更新 更多