I have a Maven RPM plugin like this:
<mapping> <directory>/etc/myconfig</directory> <configuration>true</configuration> <sources> <source> <location>${project.build.directory}</location> <includes> <include>*.conf</include> </includes> </source> </sources> </mapping>
However, depending on the packaging process, there may be null .conf files for entering / etc. When this happens, the RPM plugin says:
[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.2:rpm (default) on project clients: Unable to copy files for packaging: You must set at least one file. -> [Help 1]
Is there a way to have a display section that is happy with the inclusion of null files?
maven rpm-maven-plugin
Bittrance
source share