@Eranga : Could you please verify whether the fix provided by Sajith solves
your issue.

Thanks,
Tanya

On Thu, Oct 19, 2017 at 2:55 PM, SajithAR Ariyarathna <[email protected]>
wrote:

> Hi Tanya,
>
> Raised issue [1] for this and created PR [2] resolve it. Please review and
> merge.
>
> [1] https://github.com/wso2/carbon-dashboards/issues/614
> [2] https://github.com/wso2/carbon-dashboards/pull/615
>
> Thanks.
>
> On Thu, Oct 19, 2017 at 9:03 AM, Tanya Madurapperuma <[email protected]>
> wrote:
>
>> Hi,
>>
>> We have encountered an issue in building carbon-dashboards [1] in Windows
>> OS due to incompatibility issues in usage of the npm executable in mvn exec
>> plugin in pom at [2]
>>
>> Error log is as follows.
>>
>> [ERROR] Command execution failed.
>> java.io.IOException: Cannot run program "C:\Program Files\nodejs\npm" (in
>> directory "D:\WSO2_Packs\server\dashboard-web-component"): CreateProcess
>> error=193, %1 is not a valid Win32 application
>>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
>>        at java.lang.Runtime.exec(Runtime.java:620)
>>        at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
>> Java13CommandLauncher.java:61)
>>        at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecut
>> or.java:279)
>>        at org.apache.commons.exec.DefaultExecutor.executeInternal(Defa
>> ultExecutor.java:336)
>>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecu
>> tor.java:166)
>>        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.
>> java:764)
>>        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.
>> java:711)
>>        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
>>        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
>> o(DefaultBuildPluginManager.java:134)
>>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:207)
>>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:153)
>>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:145)
>>        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:116)
>>        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:80)
>>        at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>
>> Since npm is a batch file and not an executable, there are issues running
>> a batch file from maven exec plugin.If we are to use maven exec plugin to
>> run the build in Windows we'll have to feed the batch file npm to cmd
>> program.
>> At the same time we have to have a pom which should not require any
>> changes based on the OS.
>>
>> @ SajithAR : Could you please have a look.
>>
>>
>> [1] https://github.com/wso2/carbon-dashboards
>> [2] https://github.com/wso2/carbon-dashboards/blob/master/co
>> mponents/dashboards-web-component/pom.xml#L40
>>
>> Thanks,
>> Tanya
>>
>> --
>> Tanya Madurapperuma
>>
>> Associate Technical Lead,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439 <+94%2071%20818%204439>
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to