I have 3 projects
Projects 2 and 3 have other dependencies with jars inside of them.
Project1, XXX.web, has imported the other two projects, XXX.presistence and XXX.t1 using:
and
When I run the XXX.web, Eclipse resolves the dependencies (at runtime I think, correct me if wrong).
However I want to generate a .war file so that my web project, which has dependencies to the other two projects works fine. Does eclipse to this by itself or do I have to manually copy the dependency jars in t1 and persistence to web's lib folder?
Use ant to build your war file. Ant can compile your projects and build a war from them. Look here for more info: How to create war files