maven-jar-plugin version is set to 2.4 in the pluginManagement section of the HK2 parent pom, is a different version somehow used in your case ? Starting with 3.0.0 the property has been renamed from jar.forceCreation to maven.jar.forceCreation. In the newer versions of this plugin like 3.1.2, we are supposed to define our own manifest file as “useDefaultManifestFile” parameter has been removed from the plugin configuration. To fix this issue, we have taken help of maven-jar-plugin which provides jar building capabilities. The plugin use Maven Archiver to handle jar content and manifest configuration. This plugin can not detect the post-processing, and so leaves the post-processed jar in place. This means that it no longer creates the Specification and Implementation details in the manifest by default. Apache > Maven > Plugins > Apache Maven JAR Plugin > Using a Default Manifest File Last Published: 2015-03-04 | Version: 2.6 Overview would build the project jar with the src/main/resources by default. This can lead to failures when those plugins do not expect to find their own output as an input.

This comment has been …

Apache > Maven > Plugins > Maven JAR Plugin > Maven Jar plugin - Using a Default Manifest File Last Published: 2012-01-24 | Version: 2.4 Overview You can have a look at the Maven Archiver Documentation to understand how to setup this. Default value is: false. Set this parameter to true to avoid these problems by forcing this plugin to recreate the jar every time. maven-jar-plugin / src / main / java / org / apache / maven / plugins / jar / AbstractJarMojo.java Find file Copy path hboutemy MJAR-263 make output jars reproducible like m-source-p 64c5e65 Oct 29, 2019

This can lead to failures when those plugins do not expect to find their own output as an input.

Starting with 3.0.0 the property has been renamed from jar.forceCreation to maven.jar.forceCreation. Set this parameter to true to avoid these problems by forcing this plugin to recreate the jar every time. You might also want to consult the Guide to Working with Manifests . The notes at usage of the plugin states that ; Starting with version 2.1, the maven-jar-plugin uses Maven Archiver 3.1.1.

usedefaultmanifestfile which has been removed from the maven jar plugin