如果在 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>
ejb类型是指包含ejb接口和实现、配置文件等的jar文件
ejb-client 类型是指仅包含 ejb 接口类的 jar 文件。 IE。仅是 ejb 客户端调用它所需的内容。
maven-ejb-plugin 在其配置中具有默认或自定义配置,允许从客户端中排除 EJB 实现类。