Hi Rohit,

I created the following pr that fixed the apidoc issue in Mac.

https://github.com/apache/cloudstack/pull/4253 
<https://github.com/apache/cloudstack/pull/4253>


Kind Regards,
Sina

> On 11 Jun 2020, at 05:47, Rohit Yadav <rohit.ya...@shapeblue.com> wrote:
> 
> I think you've found the difference in BSD vs GNU/Linux sed on Mac 
> (https://github.com/apache/cloudstack/pull/3312). One way to fix on Macs 
> could be to install GNU sed using brew.
> Pull requests are welcome Sina!
> 
> 
> Regards,
> 
> Rohit Yadav
> 
> Software Architect, ShapeBlue
> 
> https://www.shapeblue.com
> 
> ________________________________
> From: Sina Kashipazha <esterlin...@yahoo.co.uk.INVALID>
> Sent: Wednesday, June 10, 2020 01:58
> To: dev@cloudstack.apache.org <dev@cloudstack.apache.org>
> Subject: Re: apidocs build failure
> 
> 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<http://www.shapeblue.com>>
>> 
>> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK>
>> 
>> @shapeblue>
>> 
>>> 
>> 
>>> 
>> 
>> 
>> 
>> 
> 
> rohit.ya...@shapeblue.com 
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
> 
> 
> 

Reply via email to