How to create a runnable jar with maven that includes dependencies in a separate “lib” folder (not an uber jar)
问题 I'm trying to use Maven to create an executable jar file that includes the dependencies in a separate directory. I've seen a lot of questions on SO about creating an "uberjar"--I don't want that. What I want is to have the depenedencies copied into a "lib" directory like so (and the jar MANIFEST.MF file with a ClassPath entry that points to them): /myApp myApp.SNAPSHOT-1.0.jar /lib hibernate.jar log4j.jar ... As an added bonus it would be nice if I could copy /src/main/resources/* into /myApp