João Antonio Ferreira opened MASSEMBLY-967 and commented
See below the relevant build segment extracted from pom.xml:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>my_package.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
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 ?
Affects: 3.3.0, 3.4.0
Remote Links:
João Antonio Ferreira opened MASSEMBLY-967 and commented
See below the relevant build segment extracted from pom.xml:
this command below does not show anything
jar -tvf target/my-fat-jar.jar | grep Main.classMy 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 ?
Affects: 3.3.0, 3.4.0
Remote Links: