I have a lot of small-ish Java command-line apps that have to use a vendor set of jars to make their connection to the servers, and while writing these apps has been pretty easy, maintaining them is turning out not to be.
I built them using Maven and some templates that gave me a pretty quick turnaround on development time, but these are all standalone command-line apps so far.
The pain comes from the updates to the vendor servers. Whenever it happens, it forces me to recompile all of these applications with the new jars in play, otherwise I'd get SerialVersionUID
Exceptions and borked apps.
What I'm considering
I was thinking that it would be possible to use Maven to generate the app and then throw it in an app server with the server providing a set of shared vendor .jars
in whatever /shared
classpath it provides. That way I could just update the .jars
, restart the server, and everything will likely continue without error.
However, I'm not sure what is required to get that working. They aren't .war
's, and most of these apps use other .jars
besides my code that isn't usually shared.
Questions
- What kinds of deployments work like this?
- Are there other ways to do this that I'm missing?
- Any tutorials, frameworks, etc., that would make this simpler?