I am very frustrated. I’ve spent a long time trying to compile a Maven project into an Uber/Fat jar file using the Maven shade plugin, but I still keep getting “mvn is not recognized as an internal or external command” error in command prompt. Here are the important bits of my pom.xml: I don’t know what I’m doing wrong. I
Tag: maven-shade-plugin
When building an application jar with Maven Shade, is it safe to exclude all META-INF/versions directories/files?
I believe the versions folders are there to support multiple Java versions. We always build for a very specific version (at this time 11). Is there a danger to excluding those directories/files when creating our single application jar? ex. Thanks! Answer Yes, these versions folders are for the support of Multi-Release Jar Files (see JEPS 238). It seems safe to
How to skip the maven antrun copy/shade:shade goal dynamically?
I am using maven for configuration of an application consisting of multiple small services. Most of the services developed in java share the same maven configuration, as in the same build lifecycle, some shared resources (like spring AMQP). So I have organized the shared resources in a SuperPom. While the shade plugin doesn’t really seem to disturb the install process,
How to configure Maven shade plugin in a multi-module project?
I have been trying to get jar using Maven Shade Plugin, but I still don’t get a success. This is my project structure: Module1 (pom.xml): Module2 (pom.xml): MainModule (pom.xml): According this code I get 2 jar-files (Module1-version.jar and Module2-version.jar). But it is not what I want. I wish to get 1 jar file (MainModule-version.jar), which would contain the other (Module1