RPM plugin configuration effectively declares ownership over /usr/bin
Opened this issue · 3 comments
I can't be certain this is still true because I'm having trouble actually building the RPM, but I've hit this same problem myself a few times I think I'm probably close to right here.
$ rpm -ql jmxterm | grep bin
/usr/bin
/usr/bin/jmxterm
(this is on an older version of the JMXTERM package I created ages ago)
The RPM is declaring it owns /usr/bin
, which I think you'll agree is overreaching a bit.
I think you will need to modify the pom so that the <directoryIncluded>false</directoryIncluded>
for the jmxterm.sh
section of the maven-rpm-plugin configuration..
While I'm here, I would also recommend:
<needarch>noarch</needarch>
You can actually build an RPM on OSX but unfortunately without the above it encodes darwin
in the needed architecture, and in reality this RPM itself is architecture independent (the JVM is of course a different matter).
also..
<targetOS>linux</targetOS>
Can you please make a pull request if it works with your change?