Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up an Eclipse Dynamic Web Project referencing another project

I've got a simple Dynamic Web project set up in Eclipse 3.6 Helios, but am having trouble getting it to make use of the code in another project that I've got.

I've added a reference to my other project to the build path of my web project, and I've got no problems in terms of compiling, only in terms of deploying and testing the result. The built web application doesn't have a jar in the WEB-INF/lib directory, so fair enough it can't find the code. The question is how I set this up. I've looked through the help that I can find and googled a bit but can't find anything obvious that helps out.

How do I set up my web project so that on deploying it it magically has the code from my dependent project inside it?

Thanks.

Note: Ideally I'd like a solution that doesn't involve setting up some kind of build tool. The web project deploys itself without recourse to any build tool (or at least none visible to end user), so was rather hoping that a references project could be integrated into that easily.

like image 910
Tom Quarendon Avatar asked Jan 10 '11 12:01

Tom Quarendon


People also ask

How do I fix the Dynamic web project missing in Eclipse?

Step 1: Click Help -> Install New Software. Step 2: In Work with add http://download.eclipse.org/releases/oxygen. If you are using any other Eclipse product like Neon then replace oxygen with neon. Step 3: Now expand checkbox with name Web, XML, Java EE and OSGi Enterprise Development.

Which Eclipse is used for Dynamic web project?

Eclipse Java EE Developer Tools. Eclipse Java Web Developer Tools.


1 Answers

What goes in the deployment is determined not by the build path but by the Deployment Assembly entry in Preferences for the dynamic web project.

like image 51
Thorbjørn Ravn Andersen Avatar answered Nov 27 '22 23:11

Thorbjørn Ravn Andersen