-
Notifications
You must be signed in to change notification settings - Fork 74
Plugin fails to execute nativeBuild task on Windows () #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just noticed it might be related to oracle/graal#4502 |
update to version [email protected]_2122 can resolve it |
Another option is to not use the args file, and use the old mechanism to avoid long classpath issue on Windows, described here: https://graalvm.github.io/native-build-tools/0.9.9/maven-plugin.html#long_classpath_and_shading_support With 0.9.11+ and GraalVM 22.1.0, this would be something like the following: <plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native.maven.plugin.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<id>build-native</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<skip>false</skip>
<useArgFile>false</useArgFile>
<imageName>${imageName}</imageName>
<buildArgs>
<buildArg>--no-fallback</buildArg>
</buildArgs>
<classpath>
<param>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</param>
</classpath>
</configuration>
</plugin> |
@alvarosanchez thanks a lot for the tip about the "useArgFile" configuration parameter; this parameter works around the problem of |
FWIW, the old shading mechanism doesn't work with Spring, which was one of the motivators for args file support. Any word on when we'll see a proper fix? |
This issue was fixed in GraalVM (see oracle/graal#4561), so it will land in the upcoming release (22.2). |
Thanks - what's the best way to understand the timeline for GraalVM releases? |
Version roadmap is hosted here: https://www.graalvm.org/release-notes/version-roadmap/ |
setting useArgFile to false is causing build task to fail with message : |
With 22.2 being released, the issue has been solved for me. Thanks for looking into it. |
Describe the bug
id 'org.graalvm.buildtools.native' version '0.9.11'
The plugin fails to execute the
nativeBuild
task and fails withTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The task should complete without errors.
System Info (please complete the following information):
windows 10 x86_64
22.1.x
17
native-gradle-plugin:0.9.11
Additional context
The text was updated successfully, but these errors were encountered: