I have close to about 20 projects in my Eclipse workspace.
They are interdependent.
Now I want to build all of them in a single war file.
The thing is eclipse does it nicely… if I create a Dynamic Web Project and link sources of all the 20 projects.
But I want to automate the entire process and want to be able to run a script (ant maybe..) and deploy a war in my app server.
My approach: I started with a simple approach. I tried to sequentially build each project (javac task) with destination directory as web-inf of my war.
But it is giving me weird errors like : package ” **** ” not found,when it shows the same all the required classes in classpath (I used verbose)
Do you think, a continous integration engine will be better for my case (20 projects..)
I saw Team City, but didnt get it the first time…
I was finally able to write an appropriate script as per my requirement.
Instead of sepearate jar’s for each project, I built a single war directly with all the classes of all my projects.
I was making a silly mistake in setting the classpath previously.I sorted out that.