[ 
https://issues.apache.org/jira/browse/CAMEL-21662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928004#comment-17928004
 ] 

Mikael Koskinen commented on CAMEL-21662:
-----------------------------------------

Sorry for the delay getting back to this. I tested with another Windows PC and 
got the same result but in the meantime it seems [~ggrzybek] was able to 
reproduce this (y)

> Camel JBang - run with Spring boot / Quarkus fails on Windows
> -------------------------------------------------------------
>
>                 Key: CAMEL-21662
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21662
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.9.0
>            Reporter: Mikael Koskinen
>            Priority: Minor
>
> I'm trying to run a simple Camel integration using Camel JBang "run" command 
> with "runtime" -option set to either springboot or to quarkus. It fails with 
> a error that make it sound like that maybe it is a Windows specific problem?
>  
> {code:java}
> camel run sync.camel.yaml  --runtime=quarkus --quarkus-version=3.15.2
> Running using Quarkus v3.15.2 (preparing and downloading files)
> The system cannot find the file 
> C:\Temp\flow\.mvn\wrapper\maven-wrapper.properties.
> Exception calling "DownloadFile" with "2" argument(s): "An exception occurred 
> during a WebClient request."
> At line:1 char:282
> + ... pe]::Tls12; $webclient.DownloadFile('https://repo.maven.apache.org/ma 
> ...
> +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
>     + FullyQualifiedErrorId : WebException
> The system cannot find the file 
> C:\Temp\flow\.mvn\wrapper\maven-wrapper.properties.
> Error: Could not find or load main class 
> org.apache.maven.wrapper.MavenWrapperMain
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.maven.wrapper.MavenWrapperMain
> {code}
>  
> {code:java}
> camel run sync.camel.yaml --runtime=spring-boot
> Running using Spring Boot v3.4.0 (preparing and downloading files)
> The system cannot find the file 
> C:\Temp\flow\.mvn\wrapper\maven-wrapper.properties.
> Exception calling "DownloadFile" with "2" argument(s): "An exception occurred 
> during a WebClient request."
> At line:1 char:282
> + ... pe]::Tls12; $webclient.DownloadFile('https://repo.maven.apache.org/ma 
> ...
> +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
>     + FullyQualifiedErrorId : WebException
> The system cannot find the file 
> C:\Temp\flow\.mvn\wrapper\maven-wrapper.properties.
> Error: Could not find or load main class 
> org.apache.maven.wrapper.MavenWrapperMain
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.maven.wrapper.MavenWrapperMain
> {code}
> Camel Main runtime works:
>  
> {code:java}
> camel run sync.camel.yaml --runtime=camel-main
> 2025-01-27 14:01:27.061  INFO 34992 --- [           main] 
> org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.9.0 is 
> starting
> 2025-01-27 14:01:27.213  INFO 34992 --- [           main] 
> org.apache.camel.main.MainSupport        : Using Java 21.0.1 with PID 34992. 
> Started by MikaelKoskinen in C:\Temp\flow
> 2025-01-27 14:01:27.328  INFO 34992 --- [           main] 
> org.apache.camel.main.ProfileConfigurer  : The application is starting with 
> profile: dev{code}
>  
>  
>  



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

Reply via email to