Till now I was using maven assembly plugin to generate two JARs for each artifact - compiled sources and dependencies - the reason for this was simple - deploying only the c
Instead of defining the plugin twice, simply define it once but with two execution
sections. So in your situation it would be:
org.apache.maven.plugins
maven-shade-plugin
shade-libs
package
shade
target/assembly/${project.artifactId}-libs.jar
...
META-INF/spring.handlers
META-INF/spring.schemas
shade-main
package
shade
target/assembly/${project.artifactId}.jar
...