I am working on the question of packaging a maven selenium framework into an executable jar file. I managed to pack both main and test classes into a jar file with maven assembly plugin and I can run tests from MainClass. I am almost done, but somehow there are a few spring dependencies in the project so during packing them into the jar they are overwriting spring.handlers/spring.schemas files. It's a well-known problem with spring projects.
The common advice is to use maven shade plugin or another tool, but I can't do it because I need to preserve my test-classes in the jar file.
What can I do to tune my assembly file for dealing with spring dependencies? Or can anyone recommend me any tool good enough both for packing test-classes and spring dependencies?