@SajithR I've checked and now it gives the following error
[ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.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.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Best regards Eranga On Thu, Oct 19, 2017 at 2:59 PM, Tanya Madurapperuma <ta...@wso2.com> wrote: > @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 <sajit...@wso2.com> > 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 <ta...@wso2.com> >> 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 <+94%2071%20818%204439> > Blog : http://tanyamadurapperuma.blogspot.com > -- *Eranga Liyanage* Senior UX Engineer | WSO2 Mob : +94 77 395 6666 Blog : https://medium.com/@erangatl Linkedin : https://www.linkedin.com/in/erangaliyanage
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev