To compile and run this app you will need:
- JDK 21
- Maven 3.8+
The following command will build the jar that will let you start the CLI using a JVM:
mvn clean package
Then run it:
java -jar ./target/quarkus-app/quarkus-run.jar
The following command will build the jar that will let you start the CLI using a JVM:
mvn clean package -Pnative-container
Then run it:
docker run -it digital/samplecli:1.0-SNAPSHOT help
The following command will build the jar that will let you start the CLI using a JVM:
mvn clean package -Pnative-local
Then run it:
./target/samplecli-1.0-SNAPSHOT-osx-x86_64-runner
or
./target/samplecli-1.0-SNAPSHOT-windows-x86_64-runner
The Maven Quarkus plugin provides a development mode that supports live coding. To try this out:
mvn quarkus:dev
or
mvn quarkus:dev -Dquarkus.args=
if you want to pass arguments in. This command will run the command mode application and if you press enter run it
again. If you make a change, you can rerun your command by just typing enter. No need to recompile or package. If you
want to change the command you're testing, just type e
. If you want to run continuously the Unit tests that are
impacted by your live changes, just type r
.
To compile and run this demo you will need:
- JDK 21+
- GraalVM (See the Building a Native Executable guide for help setting up your environment.)
- To install
native-image
binary, if you encounter some SSL errors, you may need to make a manual installation. - If you have errors because cl.exe is not found, you may need to install Visual Studio
Platform | Command |
---|---|
Linux | No need, the CI already publish the Linux binary |
Mac | Run sh src/main/scripts/release-tag.sh <version> |
Windows | Use a search to open x86_x64 Cross Tools Command Prompt for VS 2022 and run .\src\main\scripts\release-tag.bat 1.0.29 <version> |