Tôi có một Maven RPM Plugin lập bản đồ như sau:Phần ánh xạ tùy chọn trong plugin Maven RPM?
<mapping>
<directory>/etc/myconfig</directory>
<configuration>true</configuration>
<sources>
<source>
<location>${project.build.directory}</location>
<includes>
<include>*.conf</include>
</includes>
</source>
</sources>
</mapping>
Tuy nhiên, tùy thuộc vào quá trình đóng gói, có thể có zero file conf để đưa vào/etc. Khi điều này xảy ra, RPM plugin cho biết:
[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]
Có cách nào để có phần ánh xạ hài lòng với không có tệp không?