Hello,
I've tried using the Maven RPM plugin and it seems that the current
version (2.0-beta-4) doesn't handle file properties properly. A file
that has executable permission, for example, will lose this permission
in the rpm file, and all files will be 664. The problem is in the Plexus
Archiver. The RPM plugin as currently released uses Archiver version
1.0-alpha-5. The files are copied by opening an input stream and an
output stream, and just writing from one stream to another. Obviously,
this doesn't preserve any file permissions on a linux system.
I've changed the pom.xml of the RPM plugin to use Archiver version
1.0-alpha-12, because I saw that in this version, the "chmod" command is
explicitly called after copying the file. In this version, the RPM
plugin works perfectly, preserving all properties etc.
The only remaining problem is that the tests fail. So I have to install
the plugin with the -Dmaven.test.skip=true parameter. This is obviously
not good, so I'd like to fix the tests. Any idea how to do that? As far
as I can see some pom4test.xml is used, with shell scripts... how to fix
this? Anyone cares to explain what's going on here?
Thanks, Csaba
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email