-
Notifications
You must be signed in to change notification settings - Fork 353
The filename or extension is too long #1567
Comments
Looks like a bug with the limited commandline length on windows. Do you know which process starting failed? Can you switch on logging and provide a log file? Thanks! |
Could be due to graalvm/native-build-tools#212, please try with NBT 0.9.11. Could you share more about |
This is with NBT 0.9.11. longClasspath=true is a earlier fix for the 206 error used to just build the jar files with maven.
|
In |
The longClasspath=true option I use traces from here: |
Here's a similiar issue on spring-boot side: spring-projects/spring-boot#17766, with a possible workaround. |
cc @bclozel who worked on the plugin in case he could have some context/ideas to share. |
I think I have a working solution. Passing the arguments as an argfile, which is supported as of Java 9, seems like a good idea. |
See #1585 |
Using Spring Boot 2.6.4 and Maven 3.8.5, I tried to compile a large project but got the following error:
Failed to execute goal org.springframework.experimental:spring-aot-maven-plugin:0.11.3:generate (default-cli) on project Halcyon: Build failed during Spring AOT code generation: Could not exec java: Cannot run program "C:\bin\graalvm\bin\java.exe" (in directory "D:\projects\lagrproject\target"): CreateProcess error=206, The filename or extension is too long -> [Help 1]
I've gotten this error before without using spring-aot-maven-plugin, but I worked around this by setting the property:
longClasspath=true, but this setting doesn't seem to work when using spring-aot-maven-plugin.
The text was updated successfully, but these errors were encountered: