jmxterm icon indicating copy to clipboard operation
jmxterm copied to clipboard

RPM plugin configuration effectively declares ownership over /usr/bin

Open tallpsmith opened this issue 6 years ago • 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..

tallpsmith avatar Aug 22 '18 05:08 tallpsmith

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).

tallpsmith avatar Aug 22 '18 05:08 tallpsmith

also..

                    <targetOS>linux</targetOS>

tallpsmith avatar Aug 22 '18 06:08 tallpsmith

Can you please make a pull request if it works with your change?

jiaqi avatar Jan 16 '19 18:01 jiaqi