Change-Id: I5483524047476b9fcf3562dde55b07c79efbea0b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
</execution>
</executions>
<configuration>
+ <failOnNoGitDirectory>false</failOnNoGitDirectory>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
<gitDescribe>
<extensions>true</extensions>
<configuration>
<instructions>
- <Include-Resource>{maven-resources},target/classes/LICENSE,META-INF/git.properties=target/classes/META-INF/git.properties</Include-Resource>
+ <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
+ so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
+ and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
+ <Include-Resource>{maven-resources},target/classes/LICENSE,META-INF/git.properties=-target/classes/META-INF/git.properties</Include-Resource>
</instructions>
</configuration>
</plugin>