Hi Rohit,

Thanks for your suggestion to run the build command manually. I found the 
problem. Build script of apidocs used the sed inline replacement option, which 
has a different signature in MAC OS. I added '' after -i option of sed command 
in the below lines, and it fixed my problem.

https://github.com/apache/cloudstack/blob/fbfab5b5ebe1dba1000abbe30a8703c4d2f9d371/tools/apidoc/build-apidoc.sh#L64
 
<https://github.com/apache/cloudstack/blob/fbfab5b5ebe1dba1000abbe30a8703c4d2f9d371/tools/apidoc/build-apidoc.sh#L64>
https://github.com/apache/cloudstack/blob/fbfab5b5ebe1dba1000abbe30a8703c4d2f9d371/tools/apidoc/build-apidoc.sh#L65
 
<https://github.com/apache/cloudstack/blob/fbfab5b5ebe1dba1000abbe30a8703c4d2f9d371/tools/apidoc/build-apidoc.sh#L65>

More information:

https://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x?rq=1
 
<https://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x?rq=1>
https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
 
<https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux>

Kind Regards,
Sina


On 2020/06/09 03:07:49, Rohit Yadav <r...@shapeblue.com> wrote: 
> Hi Sina,> 
> 
> 
> 
> Are you seeing this on latest master? You can debug what's causing failure by 
> either running the mvn command for -pl tools/apidocs, or run the command 
> manually:> 
> 
> https://github.com/apache/cloudstack/blob/master/tools/apidoc/pom.xml#L63> 
> 
> 
> 
> It could a jdk/java issue, you may install jenv and add jdk8 or jdk11 
> installed (depending on which branch you're on, for 4.14 and master use jdk11 
> for example).> 
> 
> 
> 
> 
> 
> Regards,> 
> 
> 
> 
> Rohit Yadav> 
> 
> 
> 
> Software Architect, ShapeBlue> 
> 
> 
> 
> https://www.shapeblue.com> 
> 
> 
> 
> ________________________________> 
> 
> From: Sina Kashipazha <es...@yahoo.co.uk.INVALID>> 
> 
> Sent: Tuesday, June 9, 2020 02:03> 
> 
> To: dev@cloudstack.apache.org <de...@cloudstack.apache.org>> 
> 
> Subject: apidocs build failure> 
> 
> 
> 
> Hi,> 
> 
> 
> 
> I have trouble building apidocs on mac (see below). Any idea?> 
> 
> 
> 
> Kind Regards,> 
> 
> Sina> 
> 
> 
> 
> [INFO] Apache CloudStack apidocs .......................... FAILURE [ 31.185 
> s]> 
> 
> [INFO] Apache CloudStack marvin ........................... SKIPPED> 
> 
> [INFO] Apache CloudStack DevCloud4 ........................ SKIPPED> 
> 
> [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED> 
> 
> [INFO] 
> ------------------------------------------------------------------------> 
> 
> [INFO] BUILD FAILURE> 
> 
> [INFO] 
> ------------------------------------------------------------------------> 
> 
> [INFO] Total time: 22:03 h> 
> 
> [INFO] Finished at: 2020-06-08T21:01:37+02:00> 
> 
> [INFO] Final Memory: 132M/450M> 
> 
> [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> 
> 
> 
> 
> 
> 
> rohit.ya...@shapeblue.com > 
> 
> www.shapeblue.com> 
> 
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK> 
> 
> @shapeblue> 
> 
>   > 
> 
>  > 
> 
> 
> 
> 

Reply via email to