如何参考两个不同的日食动态网络项目?

发布于 2025-02-09 17:04:28 字数 780 浏览 1 评论 0原文

我在Eclipse Project-A中使用Project-B中的某些功能,在Project-A的pom.xml中,我找到了这一点:

<dependency>
    <groupId>someId</groupId>
    <artifactId>projectB</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <type>jar</type>
    <scope>compile</scope>
</dependency>

它与groupIdartifactid -b的pom.xml,老实说,我不明白它是如何工作的。

时的问题

- 我介绍了项目-B的功能,并且被转移了30行,调试器在线表示90,而实际的代码在第60行中执行了WS。

问题。

在调试项目 工作 ?

请注意,

Project-A中还有另一个文件夹,称为LIB“ Web-Inf/lib”,它具有Project-B的JAR包装,但是在调试时,它根本不会去那里。

到目前为止,我尝试过的内容

  • 删除了我本地的Maven依赖项文件夹中发现的Project-B.Jar文件,清洁,更新和重建项目。
  • 删除在“ Web-Inf/lib”中找到的文件夹,然后清洁,更新和重建项目。

I have in eclipse project-A that's using some functions from project-B, in project-A's pom.xml i found this :

<dependency>
    <groupId>someId</groupId>
    <artifactId>projectB</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <type>jar</type>
    <scope>compile</scope>
</dependency>

and it matches the groupid and artifactId in project-B's pom.xml and honestly i dont understand how it works.

the problem

While debugging project-A i stepped over a function from project-B and it was shifted down by like 30 rows, the debugger was on line say 90, while the actual code beign executed ws on line 60.

question

how does project referencing work ?

note

there is also another folder in project-A called lib "WEB-INF/lib" and it has a jar packaging of project-B, but when debugging it doesnt go there at all.

what i tried so far

  • deleting the project-B.jar file found in my local Maven dependencies folder, cleaning, updating and rebuilding the project.
  • deleting the folder found in "WEB-INF/lib" then cleaning, updating and rebuilding the project.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文