snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Build native image source jar #275

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Description I would like the ability for Quarkus to produce a native image source jar without also running a native-image build. The scenario in mind is the following, with two machines:

  1. Maven builder machine with all needed dependencies, but no GraalVM/Mandrel.
  2. Container builder machine using a Mandrel builder image, but no Maven or dependencies. It has access to the output from the first machine.

I cannot find a way to perform a Maven build with Quarkus, such that the output jar can be passed to native-image and produce a working executable. When I give native-image the standard runner jar, or uber-jar, the executable exits immediately with exit code 1.

Implementation ideas This functionality could perhaps be added as a package type selection for the quarkus.package.type property.


https://github.com/quarkusio/quarkus/issues/15208


$upstream:15208$