如何参考两个不同的日食动态网络项目?
我在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>
它与groupId
和artifactid -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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论