Skip to content

descriptions-of-it-technologies/quarkus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Quarkus Main Information.

Contents at a Glance.

About.

Documentation.

Benefits.

  • Developer Joy.
  • Supersonic Subatomic Java.
  • Unifies imperative and reactive.
  • Best of breed libraries and standards.

Maven Commands.

  • mvn io.quarkus:quarkus-maven-plugin:create
  • mvn quarkus:dev Running the application in dev mode.
  • mvn compile quarkus:dev Compile the application in dev mode.
  • mvn quarkus:list-extensions Show list of extensions.
  • mvn quarkus:add-extension -Dextensions="groupId:artifactId" Adding extension.
  • mvn quarkus:add-extension -Dextensions="hibernate-*" You can install all extensions which match a globbing pattern.
  • mvn package For packaging application. Be aware that it’s not an über-jar as the dependencies are copied into the target/lib directory.
  • mvn package -Pnative Compilation into native code.
  • mvn verify -Pnative
  • mvn verify -Pnative -Dquarkus.test.native-image-profile=test
  • mvn failsafe:integration-test
  • mvn package -Pnative -Dquarkus.native.container-build=true You can use Docker to build the native executable.
  • mvn quarkus-bootstrap:build-tree Displays the build dependency tree for the application.
  • mvn package -Pnative -Dquarkus.native.container-build=true Support only JDK8
  • mvnw package -Pnative -Dquarkus.native.container-runtime=docker
  • mvnw package -Pnative -Dquarkus.native.container-runtime=podman

Native Image.

  • Need registration: reflection, dynamic proxy.
  • Not supported: Dynamic Class Loading, Method Handlers, Invoke Dynamic.
  • Different: Static Initialization on build-time.

Building a native executable.

Preparation environment to build native executable.

  • sudo update-alternatives --install /usr/bin/java java /path/.../bin/java 13

  • sudo update-alternatives --install /usr/bin/javac javac /path/.../bin/javac 13

  • sudo update-alternatives --install /usr/bin/javadoc javadoc /path/.../bin/javadoc 13.

  • sudo update-alternatives --config java

  • sudo update-alternatives --config javac

  • java -version

  • javac -version.

  • export JAVA_HOME=/pathToMainFolder

  • echo $JAVA_HOME

  • export PATH=$JAVA_HOME/bin:$PATH.

  • export GRAALVM_HOME=/pathToMainFolder

  • echo $GRAALVM_HOME

  • export PATH=$GRAALVM_HOME/bin:$PATH.

  • source /home/trl/.profile.

  • $GRAALVM_HOME/bin/gu install --file native-image-installable-svm-svmee-java11-linux-amd64-20.0.0.jar

  • Or add a line "GRAALVM_HOME=$JAVA_HOME" in a file with a name ".profile". This file is in the home directory. And when you change "JAVA_HOME", the "GRAALVM_HOME" will change.

Articles.

Conferences.

Conference Speakers.

Help.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published