Mix Maven + KSC
I tried it to combine [kaitai_struct_compiler](https://github.com/kaitai-io/kaitai_struct_compiler/tree/master) 0.10 with my Maven based Java project.

In project I have _ksy-file_ and want to compile it each time before the project Java code is being compiled. For this purpose in **pom.xml** I configured **exec-maven-plugin** to execute on _generate-sources_ phase. It's used quite often to generate some kind of code from DSL-files.

I know about two possible ways to compile ksy-file:
1. Use externally installed _kaitai_struct_compiler_
2. Include _kaitai_struct_compiler_ jar-files into project and call _`JavaMain.main`_ method.

---
Option 1 works perfectly and no questions about this, but it has drawback - needs manually install compiler.

Option 2 when I build project, it fails with error for some _`JavaMain`_ internal code.

> java.lang.NullPointerException: Cannot invoke "java.net.URL.getPath()" because the return value of "java.security.CodeSource.getLocation()" is null
    at io.kaitai.struct.JavaMain$.homePath (JavaMain.scala:209)
    at io.kaitai.struct.JavaMain$.main (JavaMain.scala:246)
    at io.kaitai.struct.JavaMain.main (JavaMain.scala)
    at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:385)
    at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:374)
    at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:296)
    at java.lang.Thread.run (Thread.java:840)


I attached dummy project to reproduce the problem.
To reproduce this issue needs to have Maven 3.8+ installed, enter the project root and run command `mvn clean package`

[foo-bar.zip](https://github.com/user-attachments/files/16487292/foo-bar.zip)

BTW: I run it on Fedora 38
