Closed dcelasun closed 1 month ago
Haven't tried it but according to the Quarkus documentation you should be able to pass something like : -Dquarkus.native.additional-build-args=...
Hmm, that doesn't seem to be it. If I specify -Dquarkus.native.additional-build-args="-H:parallelism=1"
it fails with:
Error: Could not find option 'parallelism' from 'user'. Use -H:PrintFlags= to list all available options.
So I tried H:PrintFlags=
as the error message suggests, which gave me the output below, but that list doesn't match the flags documented here.
I don't think you need the -H:
part, according to example given in the documentation:
On Linux it’s possible to package a native executable that doesn’t depend on any system shared library. There are some system requirements to be fulfilled and additional build arguments to be used along with the native-image invocation, a minimum is -Dquarkus.native.additional-build-args="--static","--libc=musl".
So this should work
./mvnw clean package -Pmariadb -Pnative -DskipTests -Dquarkus.native.additional-build-args="--parallelism=1"
That does indeed work, though it seems minimum value is 2 for --parallelism
. Thanks for the help :)
Is there a way to do this? For example, to reduce parallelism, I tried:
But that fails.
MAVEN_OPTS="-H:parallelism=1"
fails as well.