Maven依赖问题
我有一个包含 EJB 模块的 EAR 项目,现在我的问题是为什么我必须在 EAR pom 和 EJB pom 中包含第三方依赖项?
我不能仅将依赖项放入 EJB POM 中吗?
I have an EAR project which has an EJB module included, now my question is why I have to include the third party dependency both in EAR pom and as well as in EJB pom?
Can't I put the dependency in only EJB POM???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要添加对 EAR POM 的第三方依赖!您必须仅在 EJB POM 上添加这些依赖项,并将 EJB 添加为 EAR POM 上的依赖项。最后,这些依赖项将进入 EAR 模块的 lib 文件夹。
you don't need to add third party dependency on EAR POM ! you must add these depencencies only on EJB POM and add EJB as a depencency on EAR POM.and finally these dependencies goes to lib folder of EAR module.