siom79 / japicmp

Comparison of two versions of a jar archive
https://siom79.github.io/japicmp
Apache License 2.0
701 stars 107 forks source link

No main mainfest attribute in JAR file #323

Closed sormuras closed 2 years ago

sormuras commented 2 years ago

Running java -jar japicmp-0.15.7.jar yields:

no main manifest attribute, in japicmp-0.15.7.jar

The contents of META-INF/MANIFEST.MF read:

Manifest-Version: 1.0
Created-By: Apache Maven 3.8.4
Built-By: runner
Build-Jdk: 11.0.14

Note that specifying the main class via java -cp japicmp-0.15.7.jar japicmp.JApiCmp works as expected:

E: Required option -o, --old is missing.
See '--help' or '-h' for more information.
sormuras commented 2 years ago

Seems like the following plugin configuration is not executed or overridden or ... who knows? ;-)

https://github.com/siom79/japicmp/blob/7bd794e05189c800e58fc4cd526d97479ef59811/japicmp/pom.xml#L59-L66

sormuras commented 2 years ago

Using japicmp-0.15.7-jar-with-dependencies.jar everything works as expected.

Please pardon the noise.