Maven依赖问题

发布于 2024-12-28 17:04:22 字数 103 浏览 4 评论 0原文

我有一个包含 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

許願樹丅啲祈禱 2025-01-04 17:04:22

您不需要添加对 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文