I built a standalone Java application that contains many dependencies (Apache Commons libs, etc.), as well as a dependency on the Spring framework, which in turn contains many dependencies.
I built this in Eclipse where it works fine. Now I need to deploy it for production, and so I'm trying to find the best way to package it with all the dependencies, as well as how to even call this thing (it will be called from the command line).
The brute force path is to export my project as a jar, find all the dependent jars (and their dependencies!), Copy them to the general directory, write a shell script that includes everything in the class path and run it. Obviously, this seems silly and tedious.
Should I use Ant, Maven? Should I pack all dependent Spring banks in one big file? Any advice on working with this would be helpful.
source
share