I am trying to build Kaa-node Debian/RPM packages. The Debian package had built successfully. But, the RPM package build fail on Ubuntu and CentOS platform.
I use follow command to build package: mvn -DskipTests -P compile-gwt,mongo-dao,mariadb-dao,cassandra,couchbase,kafka,oracle-nosql,build-rpm clean install verify
On CentOS, it show below error message: [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.3:attached-rpm (default) on project kaa-node: Unable to build the RPM: Error while executing process. Cannot run program "rpmbuild" (in directory "/root/kaa-0.9/kaa/server/node/target/rpm/kaa-node/SPECS"): error=2, No such file or directory -> [Help 1]
On Ubuntu, it show below error message: [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.3:attached-rpm (default) on project kaa-node: Unable to query for default vendor from RPM: Error while executing process. Cannot run program "rpm": error=2, No such file or directory -> [Help 1]
Have anyone can give suggestion about this question, thanks.