[英]Eclipse java web project manual set lib folder in WEB-INF
I checked out a project from svn. 我从svn签出了一个项目。 The project have a folder named as "ws" which contains WebContent folder. 该项目有一个名为“ ws”的文件夹,其中包含WebContent文件夹。 But the lib folder is outside the WebContent folder and under another folder under "ws" folder. 但是lib文件夹在WebContent文件夹之外,在“ ws”文件夹下的另一个文件夹下。 I found out I have to move the lib folder to WEB-INF folder in WebContent folder, so eclipse can find the libraries I need. 我发现我必须将lib文件夹移至WebContent文件夹中的WEB-INF文件夹,以便eclipse可以找到我需要的库。
Would anyone show me how to manually set the path so eclipse can load the libraries from the original lib without moving the lib to WEB-INF? 有人会告诉我如何手动设置路径,以便eclipse可以从原始库加载库,而无需将库移至WEB-INF吗?
Thanks 谢谢
You can edit the Deployment Assembly which controls how the app deployment is assembled. 您可以编辑部署程序集,该程序集控制应用程序部署的组装方式。 Right-click the project and select Properties ; 右键单击该项目,然后选择Properties ; select Deployment Assembly and then use Add... to include your project's libraries (JARs) in the deployed WEB-INF/lib
folder. 选择“ 部署程序集” ,然后使用“ 添加...”将项目的库(JAR)包含在已部署的 WEB-INF/lib
文件夹中。
If you've already included the libraries on the project Build Path, there's an option in the Add... dialog to include them directly. 如果您已经将库包含在项目“构建路径”中,则“添加...”对话框中有一个选项可以直接包含它们。 Otherwise you can just add a folder itself. 否则,您可以只添加一个文件夹本身。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.