In my pom.xml I use the maven-assembly-plugin to create an executable jar-with-dependencies when running \"mvn clean install\". Now it first creates the non-exe
pom.xml
You can use this build below and compile with this command :
mvn clean compile assembly:single
maven-assembly-plugin 3.1.0 jar-with-dependencies youMainClass ${artifactId} false package single