{"action":"created","issue":{"url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/42","repository_url":"https://api.github.com/repos/mojohaus/exec-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/42/comments","events_url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/42/events","html_url":"https://github.com/mojohaus/exec-maven-plugin/issues/42","id":155428455,"number":42,"title":"Execution of Windows executables broken in 1.5.0","user":{"login":"fjakop","id":1125261,"avatar_url":"https://avatars.githubusercontent.com/u/1125261?v=3","gravatar_id":"","url":"https://api.github.com/users/fjakop","html_url":"https://github.com/fjakop","followers_url":"https://api.github.com/users/fjakop/followers","following_url":"https://api.github.com/users/fjakop/following{/other_user}","gists_url":"https://api.github.com/users/fjakop/gists{/gist_id}","starred_url":"https://api.github.com/users/fjakop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjakop/subscriptions","organizations_url":"https://api.github.com/users/fjakop/orgs","repos_url":"https://api.github.com/users/fjakop/repos","events_url":"https://api.github.com/users/fjakop/events{/privacy}","received_events_url":"https://api.github.com/users/fjakop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T06:51:06Z","updated_at":"2016-05-27T12:29:29Z","closed_at":null,"body":"I'm using exec-maven-plugin on Windows to run `npm install` in a JS project. \r\n```\r\n<groupId>org.codehaus.mojo</groupId>\r\n<artifactId>exec-maven-plugin</artifactId>\r\n<version>1.4.0</version>\r\n<executions>\r\n\t<execution>\r\n\t\t<id>npm install</id>\r\n\t\t<phase>generate-resources</phase>\r\n\t\t<goals>\r\n\t\t\t<goal>exec</goal>\r\n\t\t</goals>\r\n\t\t<configuration>\r\n\t\t\t<executable>npm</executable>\r\n\t\t\t<commandlineArgs>install --registry ${npm.registry}</commandlineArgs>\r\n\t\t</configuration>\r\n\t</execution>\r\n</executions>\r\n```\r\n\r\nwhich works fine with 1.4.0 but switching to 1.5.0 results in\r\n```\r\n[INFO] --- exec-maven-plugin:1.5.0:exec (npm install) @ util ---\r\n[ERROR] Command execution failed.\r\njava.io.IOException: Cannot run program \"C:\\Program Files\\nodejs\\npm\" (in directory \"D:\\Workspaces\\git-repositories\\myproject\"): CreateProcess error=193, %1 ist keine zulässige Win32-Anwendung\r\n        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\r\n        at java.lang.Runtime.exec(Runtime.java:620)\r\n        at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)\r\n        at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)\r\n        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\r\n        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\r\n        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\r\n        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\r\n        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\r\n        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)\r\n        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)\r\n        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: java.io.IOException: CreateProcess error=193, %1 ist keine zulässige Win32-Anwendung\r\n        at java.lang.ProcessImpl.create(Native Method)\r\n        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)\r\n        at java.lang.ProcessImpl.start(ProcessImpl.java:137)\r\n        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\r\n        ... 30 more\r\n```"},"comment":{"url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/comments/222134048","html_url":"https://github.com/mojohaus/exec-maven-plugin/issues/42#issuecomment-222134048","issue_url":"https://api.github.com/repos/mojohaus/exec-maven-plugin/issues/42","id":222134048,"user":{"login":"fjakop","id":1125261,"avatar_url":"https://avatars.githubusercontent.com/u/1125261?v=3","gravatar_id":"","url":"https://api.github.com/users/fjakop","html_url":"https://github.com/fjakop","followers_url":"https://api.github.com/users/fjakop/followers","following_url":"https://api.github.com/users/fjakop/following{/other_user}","gists_url":"https://api.github.com/users/fjakop/gists{/gist_id}","starred_url":"https://api.github.com/users/fjakop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjakop/subscriptions","organizations_url":"https://api.github.com/users/fjakop/orgs","repos_url":"https://api.github.com/users/fjakop/repos","events_url":"https://api.github.com/users/fjakop/events{/privacy}","received_events_url":"https://api.github.com/users/fjakop/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T12:29:29Z","updated_at":"2016-05-27T12:29:29Z","body":"Yes I did, but calling the same from cmd promt works well and with version 1.5.0 also."}}
{"actor":{"display_login":"fjakop"}}