Skip to content
Discussion options

You must be logged in to vote

I found the cause

This is because of

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

public final class KaravanGenerator {

    public static void main(String[] args) throws Exception {
        String rootPath = args.length > 0 ? args[0] : ".";
        
        ......
    }

}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@arockiaraj1994
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by arockiaraj1994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants