I\'ve spent far too much time trying to figure this out. This should be the simplest thing and everyone who distributes Java applications in jars must have to deal with it.
I will also usually use a version file. I will create one file per jar since each jar could have its own version.