kirksl / karate-runner

VSCode Extension for Karate
https://marketplace.visualstudio.com/items?itemName=kirkslota.karate-runner
MIT License
34 stars 11 forks source link

java.lang.ClassNotFoundException: com.intuit.karate.cli.Main error for Karate 1.5 version #195

Open DeepKandey opened 4 hours ago

DeepKandey commented 4 hours ago

This error has started coming since I started using karate version 1.5

java.lang.ClassNotFoundException: com.intuit.karate.cli.Main.

Please let me know how I can modify the command being executed for any karate test.

I need to change the class name in the command as the group ID has changed in the 1.5 version.

kirksl commented 3 hours ago

@DeepKandey Can you confirm if this is the same issue https://github.com/kirksl/karate-runner/issues/192

DeepKandey commented 3 hours ago

Yes, @kirksl it seems to be the same issue. The runner was working fine till 1.4.1 But when I switched to 1.5, it stopped working giving this error. I think the main class name has changed in 1.5.

So if there is a way I can override the main class name that is being used on the command line , it would be great. mvn -f "/Users/deepak.rai2/Gitlab/projectname/pom.xml" exec:java -Dexec.mainClass="com.intuit.karate.cli.Main"

kirksl commented 3 hours ago

Great I would follow up with Karate Labs as this is out of our control in Karate Runner. https://github.com/karatelabs/karate/issues