Skip to content
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

"Separating Java and native image compilation" docs different to actual behaviour #19460

Closed
vchrisb opened this issue Aug 17, 2021 · 1 comment · Fixed by #19610
Closed

"Separating Java and native image compilation" docs different to actual behaviour #19460

vchrisb opened this issue Aug 17, 2021 · 1 comment · Fixed by #19610
Assignees
Milestone

Comments

@vchrisb
Copy link

vchrisb commented Aug 17, 2021

Describe the bug

The docs for "Separating Java and native image compilation" are different than the actual behaviour.

Expected behavior

It is expected that ./mvnw clean package -Dquarkus.package.type=native-sources will generate two files:

native-image.args
getting-started-1.0.0-SNAPSHOT-runner.jar

These can be used to build the native image in a separate step.

Actual behavior

./mvnw clean package -Dquarkus.package.type=native-sources is generating in addition a libs directory, which is part of the Class-Path of the getting-started-1.0.0-SNAPSHOT-runner.jar:

native-image.args
getting-started-1.0.0-SNAPSHOT-runner.jar
lib/
Class-Path:  lib/io.quarkus.quarkus-resteasy-2.1.2.Final.jar lib/io.quar
 kus.quarkus-vertx-http-2.1.2.Final.jar lib/io.quarkus.quarkus-core-2.1.
 2.Final.jar lib/jakarta.annotation.jakarta.annotation-api-1.3.5.jar lib
 /jakarta.enterprise.jakarta.enterprise.cdi-api-2.0.2.jar lib/jakarta.el
 .jakarta.el-api-3.0.3.jar lib/jakarta.interceptor.jakarta.interceptor-a
 pi-1.2.5.jar lib/jakarta.inject.jakarta.inject-api-1.0.jar lib/io.quark
 us.quarkus-development-mode-spi-2.1.2.Final.jar lib/io.smallrye.config.
 smallrye-config-2.4.3.jar lib/io.smallrye.config.smallrye-config-core-2
 .4.3.jar lib/org.eclipse.microprofile.config.microprofile-config-api-2.
 0.jar lib/io.smallrye.common.smallrye-common-expression-1.6.0.jar lib/i
 o.smallrye.common.smallrye-common-function-1.6.0.jar lib/io.smallrye.co
 mmon.smallrye-common-constraint-1.6.0.jar lib/io.smallrye.common.smallr
 ye-common-classloader-1.6.0.jar lib/io.smallrye.config.smallrye-config-
 common-2.4.3.jar lib/org.jboss.logging.jboss-logging-3.4.2.Final.jar li
 b/org.jboss.logmanager.jboss-logmanager-embedded-1.0.9.jar lib/org.jbos
 s.logging.jboss-logging-annotations-2.2.1.Final.jar lib/org.jboss.threa
 ds.jboss-threads-3.4.2.Final.jar lib/org.slf4j.slf4j-api-1.7.30.jar lib
 /org.jboss.slf4j.slf4j-jboss-logmanager-1.1.0.Final.jar lib/org.graalvm
 .sdk.graal-sdk-21.1.0.jar lib/org.wildfly.common.wildfly-common-1.5.4.F
 inal-format-001.jar lib/io.quarkus.quarkus-bootstrap-runner-2.1.2.Final
 .jar lib/io.smallrye.common.smallrye-common-io-1.6.0.jar lib/io.quarkus
 .quarkus-security-runtime-spi-2.1.2.Final.jar lib/io.quarkus.quarkus-mu
 tiny-2.1.2.Final.jar lib/io.smallrye.reactive.mutiny-0.19.2.jar lib/org
 .reactivestreams.reactive-streams-1.0.3.jar lib/io.smallrye.common.smal
 lrye-common-annotation-1.6.0.jar lib/io.quarkus.quarkus-smallrye-contex
 t-propagation-2.1.2.Final.jar lib/modified-io.smallrye.smallrye-context
 -propagation-1.2.0.jar lib/io.smallrye.smallrye-context-propagation-api
 -1.2.0.jar lib/io.smallrye.smallrye-context-propagation-storage-1.2.0.j
 ar lib/io.smallrye.reactive.mutiny-smallrye-context-propagation-0.19.2.
 jar lib/io.quarkus.quarkus-vertx-http-dev-console-runtime-spi-2.1.2.Fin
 al.jar lib/io.quarkus.arc.arc-2.1.2.Final.jar lib/jakarta.transaction.j
 akarta.transaction-api-1.3.3.jar lib/io.quarkus.security.quarkus-securi
 ty-1.1.4.Final.jar lib/io.quarkus.quarkus-vertx-core-2.1.2.Final.jar li
 b/io.quarkus.quarkus-netty-2.1.2.Final.jar lib/io.netty.netty-codec-4.1
 .65.Final.jar lib/io.netty.netty-codec-http-4.1.65.Final.jar lib/io.net
 ty.netty-codec-http2-4.1.65.Final.jar lib/io.netty.netty-handler-4.1.65
 .Final.jar lib/io.netty.netty-codec-haproxy-4.1.65.Final.jar lib/io.net
 ty.netty-buffer-4.1.65.Final.jar lib/io.netty.netty-transport-4.1.65.Fi
 nal.jar lib/io.vertx.vertx-core-4.1.2.jar lib/io.netty.netty-common-4.1
 .65.Final.jar lib/io.netty.netty-handler-proxy-4.1.65.Final.jar lib/io.
 netty.netty-codec-socks-4.1.65.Final.jar lib/io.netty.netty-resolver-4.
 1.65.Final.jar lib/io.netty.netty-resolver-dns-4.1.65.Final.jar lib/io.
 netty.netty-codec-dns-4.1.65.Final.jar lib/com.fasterxml.jackson.core.j
 ackson-core-2.12.4.jar lib/io.vertx.vertx-web-4.1.2.jar lib/io.vertx.ve
 rtx-web-common-4.1.2.jar lib/io.vertx.vertx-auth-common-4.1.2.jar lib/i
 o.vertx.vertx-bridge-common-4.1.2.jar lib/io.quarkus.quarkus-resteasy-s
 erver-common-2.1.2.Final.jar lib/io.quarkus.quarkus-arc-2.1.2.Final.jar
  lib/org.eclipse.microprofile.context-propagation.microprofile-context-
 propagation-api-1.2.jar lib/io.quarkus.quarkus-resteasy-common-2.1.2.Fi
 nal.jar lib/org.jboss.resteasy.resteasy-core-4.7.0.Final.jar lib/org.jb
 oss.spec.javax.ws.rs.jboss-jaxrs-api_2.1_spec-2.0.1.Final.jar lib/org.j
 boss.spec.javax.xml.bind.jboss-jaxb-api_2.3_spec-2.0.0.Final.jar lib/or
 g.jboss.resteasy.resteasy-core-spi-4.7.0.Final.jar lib/jakarta.activati
 on.jakarta.activation-api-1.2.1.jar lib/com.ibm.async.asyncutil-0.1.0.j
 ar lib/com.sun.activation.jakarta.activation-1.2.1.jar lib/jakarta.vali
 dation.jakarta.validation-api-2.0.2.jar

How to Reproduce?

Steps to reproduce:

  1. git clone https://github.com/quarkusio/quarkus-quickstarts
  2. cd quarkus-quickstarts/getting-started
  3. ./mvnw clean package -Dquarkus.package.type=native-sources
  4. ls target/native-sources

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@geoand
Copy link
Contributor

geoand commented Aug 24, 2021

Thanks for reporting.

#19610 will fix the issue and will part of the 2.2.0.Final docs

geoand added a commit that referenced this issue Aug 24, 2021
Improve documentation of "Separating Java and native image compilation" section
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Aug 24, 2021
@gsmet gsmet modified the milestones: 2.3 - main, 2.2.0.Final Aug 24, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Aug 24, 2021
…n" section

Fixes: quarkusio#19460

Co-authored-by: Guillaume Smet <[email protected]>
(cherry picked from commit 04f00ff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants