Hi,
I was able to successfully build cloudstack from source code and start it
with jetty. Now I want to package it and deploy it on another machine.
Therefore I tried to build the rpm with "./package.sh --pack oss
--distribution centos7" . However it throws the below error.
error: Failed build dependencies:
        maven >= 3.0.0 is needed by cloudstack-4.14.0.0-SNAPSHOT.el7.x86_64
RPM Build Failed
I have maven 3.6.2 running on my machine. Am I missing something here. I
have pasted below the CLI output for your reference.

[user@localhost packaging]$ ./package.sh --pack oss --distribution centos7
Packaging CloudStack...
Preparing to package Apache CloudStack 4.14.0.0-SNAPSHOT
. preparing source tarball
. executing rpmbuild
error: Failed build dependencies:
        maven >= 3.0.0 is needed by cloudstack-4.14.0.0-SNAPSHOT.el7.x86_64
RPM Build Failed
[user@localhost packaging]$ echo $M2_HOME
/usr/local/maven
[user@localhost packaging]$ mvn -version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
2019-08-27T11:06:16-04:00)
Maven home: /usr/local/maven
Java version: 1.8.0_222, vendor: Oracle Corporation, runtime:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.27.2.el7.x86_64", arch: "amd64",
family: "unix"

-- 

Darshana Sampath

-- 
The content of this email is confidential and/or copyright and is solely 
for the intended recipient. If you have received this email in error: (i) 
you must not copy or distribute any part of it or otherwise disclose its 
contents to anyone; (ii) please let Mitra Innovation know by reply email to 
the sender and delete all copies from your system. No representation is 
made that this email is free of viruses or other defects. Virus scanning is 
recommended and is the responsibility of the recipient.

Reply via email to