简体   繁体   English

eclipse,动态Web项目,向classpath添加另一个eclipse项目

[英]eclipse, dynamic web project, adding another eclipse project to classpath

I have an eclipse dynamic web project that uses another project that contains all the business logic. 我有一个蚀动态Web项目,它使用另一个包含所有业务逻辑的项目。 I am able to get everything to run ok when I create a jar for the other project and add to WEB-INF/lib, but I would like to not do this. 当我为另一个项目创建一个jar并将其添加到WEB-INF / lib时,我能够使所有程序正常运行,但是我不想这样做。

In Java Build Path > Projects I have the project added, and in Project References I also have it added. 在Java Build Path> Projects中,我添加了项目,在Project References中,我也添加了项目。

Any other ideas? 还有其他想法吗? Did some searching and was not able to find the answer, thanks. 进行了一些搜索,但找不到答案,谢谢。 bp bp

You need to add business project in deployment assembly of dynamic web project. 您需要在动态Web项目的部署程序集中添加业务项目。

Steps: Right Click on dynamic web project -> properties -> deployment assembly -> Add-> Project -> Select your project -> Finish 步骤:右键单击动态Web项目->属性->部署程序集->添加->项目->选择项目->完成

Redeploy your web application. 重新部署您的Web应用程序。 This should work! 这应该工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM