I would expect the file configure-foo.properties to be ignored, which should be possible with the spec file directive %verify(owner group) /opt/foo/configure-foo.properties.
Basically, I see three ways to achieve this in our build process:
No change to the pom.xml is needed and the rpm-maven-plugin adds a suitable %verify directive by default, or
I add a nested element such as <verifyexclude>true</verifyexclude> to the respective entry in the pom.xml, or
I write a separate nested such as <verifyparams>owner group</verifyparams> to the respective entry in the pom.xml
We are facing essentially the same problem as described in https://stackoverflow.com/questions/38993603/rpm-verify-ignore-config-files: The pom.xml contains an entry like this:
The rpm-maven-plugin creates an rpm file that contains a configuration file
configure-foo.properties
. After the user has edited that file and uses RPM's verification as described in https://www.linux.co.cr/distributions/review/2002/red-hat-8.0/maximum-rpm-1.0/ch-rpm-verify.html that tool treats this as a mismatch.I would expect the file
configure-foo.properties
to be ignored, which should be possible with the spec file directive%verify(owner group) /opt/foo/configure-foo.properties
. Basically, I see three ways to achieve this in our build process:%verify
directive by default, or<verifyexclude>true</verifyexclude>
to the respective entry in the pom.xml, or<verifyparams>owner group</verifyparams>
to the respective entry in the pom.xmlI slightly favour the first option.