Joshua ChaitinPollak wrote:
If not (and this would actually be preferable), is there any way in Maven to run tests on an assembly (or other distributable)? If I could do that, I could write tests and have them test a fully built distributable, which would let the shell scripts assemble the classpath the same way we do in production, which would make the test much more realistic.
In our case we try and avoid classpath hell as much as we can by creating uberjars of all our executable code. Uberjars are self contained jars with all dependencies included, we don't need to worry about classpaths anywhere.
We use the assembly plugin to create a jar-with-dependencies uberjar to do this.
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature