[ 
https://issues.apache.org/jira/browse/CAMEL-19923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-19923:
--------------------------------
    Fix Version/s: 4.1.0

> Camel JBang dependency is not working on Windows not finding mvn in 
> .camel-jbang\export
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-19923
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19923
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.0.1
>            Reporter: Aurélien Pupier
>            Assignee: Aurélien Pupier
>            Priority: Minor
>             Fix For: 4.1.0
>
>
> when using:
> {noformat}
> jbang camel@apache/camel dependency copy MyValidRouteBuilder.java
> {noformat}
> it gives the error:
> {noformat}
> java.io.IOException: Cannot run program "mvn" (in directory 
> ".camel-jbang\export"): CreateProcess error=2, The system cannot find the 
> file specified
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
>         at java.base/java.lang.Runtime.exec(Runtime.java:594)
>         at java.base/java.lang.Runtime.exec(Runtime.java:418)
>         at 
> org.apache.camel.dsl.jbang.core.commands.DependencyCopy.export(DependencyCopy.java:61)
>         at 
> org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.doCall(ExportBaseCommand.java:215)
>         at 
> org.apache.camel.dsl.jbang.core.commands.Export.doCall(Export.java:28)
>         at 
> org.apache.camel.dsl.jbang.core.commands.DependencyCopy.doCall(DependencyCopy.java:46)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:36)
>         at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
>         at picocli.CommandLine.access$1500(CommandLine.java:148)
>         at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
>         at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
>         at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
>         at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
>         at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
>         at picocli.CommandLine.execute(CommandLine.java:2170)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:159)
>         at main.CamelJBang.main(CamelJBang.java:36)
> Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
> the file specified
>         at java.base/java.lang.ProcessImpl.create(Native Method)
>         at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:499)
>         at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
>         ... 19 more
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to