Skip to content

native-image-maven-plugin crash on windows with long command lines #2995

@jonenst

Description

@jonenst

Describe the issue
Using native-image-maven-plugin 20.3, in my case the command line generated by native-image-maven-plugin is about 15k characters (all the jars) and maven crashes with "The command line is too long."

More details on
#2596 (comment)

Steps to reproduce the issue
To reproduce, you need jars with a long prefix.. example public run:
https://github.com/powsybl/powsybl-open-loadflow/runs/1414612072

Describe GraalVM and your environment:

  • GraalVM version CE 20.3

More details

[INFO] Executing: C:\hostedtoolcache\windows\jdk\11.0.0\x64\bin\native-image.cmd -cp [... many many jars ] --no-fallback --allow-incomplete-classpath -H:Class=com.powsybl.tools.Main -H:Name=olf
The command line is too long.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions