Hi Sajini,

Carbon platform 4.2 works with maven 3.0.5 only

Regards,
Firzhan

On Wed, May 27, 2015 at 8:18 AM, Sajini De Silva <[email protected]> wrote:

> Hi,
>
> I tried to build a simple ESB project created using Dev Studio in Windows
> environment and got the following error. My maven version is 3.3. But when
> I downgrade the maven version to 3.0.5 the build was successful. Is this a
> bug?
>
>
>
>  Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec
> (package) on project EdwConfig: Command execution failed. Cannot run
> program "mvn" (in directory
> "C:\WSO2\Project\ESB\Edw\EdwConfig\target\capp"): CreateProcess error=2,
> The system cannot find the file specified -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (package) on project
> EdwConfig: Command execution failed.
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 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:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Command
> execution failed.
> at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:350)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.io.IOException: Cannot run program "mvn" (in directory
> "C:\WSO2\Project\ESB\Edw\EdwConfig\target\capp"): CreateProcess error=2,
> The system cannot find the file specified
> at java.lang.ProcessBuilder.start(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at
> org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
> at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
> at
> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
> at
> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
> at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:589)
> at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:335)
> ... 21 more
>
> Thank you,
> Sajini
> --
> Sajini De SIlva
> Software Engineer; WSO2 Inc.; http://wso2.com ,
> Email: [email protected]
> Blog: http://sajinid.blogspot.com/
> Git hub profile: https://github.com/sajinidesilva
>
> Phone: +94 712797729
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to