[MASSEMBLY-967] maven-assembly-plugin doesn't add target/class artifacts in generated jarfat but META-INF/MANIFEST.MF seems to be correct (original) (raw)
See below the relevant build segment extracted from pom.xml:
maven-assembly-plugin 3.4.0 true my_package.Main jar-with-dependencies
this command below does not show anything
jar -tvf target/my-fat-jar.jar | grep Main.class
My main class and other project artifacts are not added in fatjar by maven-assembly-plugin
Edit: I tested it with other versions of the plugin (3.2.0, 2.2, ...) and it didn't work. However if I change the version from 3.4.0 to 2.2-beta-5 the fatjar is generated correctly. Version 2.2-beta-5 is from 12/06/2009, ie very old. I would like to use a newer version. Any idea ?