mail2lawi opened a new issue, #7102:
URL: https://github.com/apache/cloudstack/issues/7102
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Building image for Centos8 using rpmbuild from source
-->
~~~
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Red Hat Enterprise Linux 8.7
Apache Maven 3.5.4 (Red Hat 3.5.4-5)
Maven home: /usr/share/maven
Java version: 11.0.17, vendor: Red Hat, Inc., runtime:
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.el8_6.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.18.0-425.10.1.el8_7.x86_64", arch: "amd64",
family: "unix"
Node v10.24.0
##### SUMMARY
<!-- Explain the problem/feature briefly -->
I am trying to build the rpm pack for Cloudstack from source as per the
instructions in the doc site.
After running the ./package.sh -d centos8 the process fails after around 25
mins with the error below:
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
cloud-apidoc: Command execution failed.: Process exited with an error: 1 (Exit
value: 1) -> [Help 1]
I had been getting almost similar errors with other plugins which I resolved
by setting the correct versions in the pom.xml:
- gmaven - changed version to 1.5
- Added a missing maven-assembly-plugin ver 2.2.1
- Addded a missing maven-war-plugin ver 2.2
Those interventions seemed to solve the issues as I'm not failing at those
steps (yet).
However, with the org.codehaus.mojo:exec-maven-plugin:1.2.1:exec error I
can't seem to get a way around it. For one, I do not know if the issue is with
the pom.xml.
Secondly, I do not know where exactly to edit even if the issue with the
pom.xml
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
packaging]$ ./package.sh -d centos8
---- skipped for brevity---
[INFO] Apache CloudStack Developer Mode ................... SUCCESS [ 1.129
s]
[INFO] Apache CloudStack Developer Tools .................. SUCCESS [ 0.017
s]
[INFO] Apache CloudStack apidocs .......................... FAILURE [ 6.354
s]
[INFO] Apache CloudStack marvin ........................... SKIPPED
[INFO] Apache CloudStack DevCloud4 ........................ SKIPPED
[INFO] Apache CloudStack DevCloud-KVM 4.17.2.0 ............ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25:43 min
[INFO] Finished at: 2023-01-18T10:10:32+03:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
cloud-apidoc: Command execution failed.: Process exited with an error: 1 (Exit
value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :cloud-apidoc
error: Bad exit status from /var/tmp/rpm-tmp.KHosT0 (%build)
RPM build errors:
Macro expanded in comment on line 590:
%{_sysconfdir}/logrotate.d/%{name}-catalina
Bad exit status from /var/tmp/rpm-tmp.KHosT0 (%build)
RPM Build Failed
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]