I have a code base which I want to distribute as jar. It also have dependency on external jars, which I want to bundle in the final jar.
I heard that this can be do
Maybe you want maven-shade-plugin
, bundle dependencies, minimize unused code and hide external dependencies to avoid conflicts.
org.apache.maven.plugins
maven-shade-plugin
3.1.1
package
shade
true
true
${java.io.tmpdir}/dependency-reduced-pom.xml
com.acme.coyote
hidden.coyote
References: