Configure the Eclipse Dynamic Web Project by referencing another project

I have a simple Dynamic Web project created in Eclipse 3.6 Helios, but I have problems using it in another project that I have.

I added a link to my other project on the build path of my web project, and I have no problems in terms of compilation, only in terms of deploying and testing the result. The embedded web application does not contain a jar in the WEB-INF / lib directory, so it is fair enough that it cannot find the code. The question is how I asked it. I looked through the help that I can find and do some work, but I can not find anything obvious that helps.

How do I set up my web project so that when I deploy it, it has magic code from my dependent project inside it?

Thanks.

Note. Ideally, I would like to get a solution that is not related to setting up any build tool. A web project is deployed without resorting to any building tool (or at least not visible to the end user), so it was more likely that the link project could be easily integrated into it.

+6
eclipse web-services
source share
2 answers

What happens in the deployment is not determined by the assembly path, but by the Assembly Assembly entry in the settings for a dynamic web project.

+9
source share

Use some build tool, for example ANT or Ivy or Maven , which copy all dependencies to WEB-INF/lib during assembly

Using the build tool is good practice to automate assembly, testing, and deployment. You may also be interested in plugins like Maven Reactor .

+1
source share

All Articles