Issue
The rpm-maven-plugin generate implicit procompiled files. I don't need this files and this new files stop my rpm-generation, because these files not in automatic in my rpm SPEC. Soulution https://www.redhat.com/archives/rpm-list/2007-November/msg00020.html don't help me in my maven context!
Solution
The solution is redefine __os_install_post macro in pom.xml:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-1</version>
<extensions>true</extensions>
<configuration>
<name>${project.name}</name>
<version>1.1</version>
<release>111</release>
<distribution>Red Hat 6.2 Enterprise Server</distribution>
<group>Application/Media</group>
<defineStatements>
<defineStatement>__os_install_post
/usr/lib/rpm/redhat/brp-compress
%{!?__debug_package:
/usr/lib/rpm/redhat/brp-strip %{__strip}
/usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump}
}
/usr/lib/rpm/redhat/brp-strip-static-archive %{__strip}
/usr/lib/rpm/redhat/brp-python-hardlink
</defineStatement>
</defineStatements>
The original macro is:
rpm --showrc
-14: __os_install_post
/usr/lib/rpm/redhat/brp-compress
%{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}}
/usr/lib/rpm/redhat/brp-strip-static-archive %{__strip}
/usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump}
/usr/lib/rpm/brp-python-bytecompile
/usr/lib/rpm/redhat/brp-python-hardlink
%{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars}
%{nil}
Answered By - Gerd