[
https://issues.apache.org/jira/browse/CAMEL-21662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928326#comment-17928326
]
Claus Ibsen edited comment on CAMEL-21662 at 2/19/25 8:01 AM:
--------------------------------------------------------------
[~ggrzybek] I pushed a potential fix in the mvnd.cmd file for windows. Can you
try again with latest code from main branch (you need to use 4.11.0-SNAPSHOT)
as camel-jbang version for the CLI
was (Author: davsclaus):
[~ggrzybek] I pushed a potential fix in the mvnd.cmd file for windows. Can you
try again with latest code from main branch
> 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, 4.10.0
> Reporter: Mikael Koskinen
> Priority: Minor
> Fix For: 4.10.1, 4.11.0
>
>
> 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)