GitHub user Arockiaraj-Baton added a comment to the discussion: Question
I found the cause
This is because of
```java
public final class KaravanGenerator {
public static void main(String[] args) throws Exception {
String rootPath = args.length > 0 ? args[0] : "";
......
}
}
```
**Fix 1: Compile level**
Pass current path as part of building generator.
```
mvn clean compile exec:java
-Dexec.mainClass="org.apache.camel.karavan.generator.KaravanGenerator"
-Dexec.args="." -f karavan-generator
```
**Fix 2: Code level**
```java
public final class KaravanGenerator {
public static void main(String[] args) throws Exception {
String rootPath = args.length > 0 ? args[0] : ".";
......
}
}
```
GitHub link:
https://github.com/apache/camel-karavan/discussions/1600#discussioncomment-16092569
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]