The site I'm working on now consists of several java projects and the main web project A , which links to them. The IDE I use is Eclipse Helios.
What I'm trying to accomplish is to add a new project B to the stack. The project also refers to the main one, but in itself is a web project. When I add B to deployment assembly A , when published, Eclipse automatically packs it like a war and deploys it to the WEB-INF/lib server.
I want it to be deployed as a jar, but also preserve the nature of the project website, since it has some functions (and tests) that are performed on it. I have ant tasks for creating a jar from B , but I don't know how to use them in Eclipse. Also, I'm not sure if you can get Eclipse to deploy the jar from a web project.
I can add the jar manually (as an archive from the workspace), but this will mean that whenever someone clears all projects, the jar for B will be deleted and not generated, since the assembly only compiles the classes and deployment packs them into war .
PS I know that the design is bad, but changing it is out of the question, because I have no authority :).
java eclipse jar deployment
Alex ciminian
source share