This question is about eclipse development, I am trying to create a web application in Eclipse, the problem is that I don't get the the dependencies jars to the deployed archive.
I've created a new dynamic web project and linked it to another java project. The java project references a few 3rd party jars (e.g. Spring jars) but for some reasons when publishing the web project I get only the java project jar in the lib dir of the war, without the java project dependencies (e.g.Spring).
In other words, I have project A (web project) that depends on project B (Java Project), project B depends on Spring jars. When I publish the web project as a war to jboss, only project B is packaged into the jar (no spring jars)
I know I can do it with ant, I even have such build.xml to build the whole app, but I thought eclipse can also perform the packaging task for me.
I added the Java project to the Java EE module dependencies in the web project.
Should I use the export option in the java project build path properties? should I add the dependencies of the java project to the web project as well?
What am I doing wrong?
Edit: I am using Eclipse 3.5.1