In this exercise, we will run a Quarkus project and play with it to get familiar with some basic commands and constructs!
./mvnw quarkus:dev
keep this running in a separate terminal window throughout this exercise!
Go to http://localhost:8080/hello
Open this project in a Java editor/IDE
Open exercise1/src/main/java/org/example/exercise1/GreetingResource.java
Change the String in the last line:
return "hello"
to something else.
Do not restart the anything, simply go to the web browser, and hit reload. Quarkus automatically loads your changes without restarting the app server!
./mvnw package
Then see what was produced, look into the target directory:
// unix
ls -l target
// windows
dir target
╰─ ls -1 target
classes
exercise1a-1.0-SNAPSHOT-runner.jar
exercise1a-1.0-SNAPSHOT.jar
generated-sources
generated-test-sources
lib
maven-archiver
maven-status
quarkus
surefire-reports
test-classes
The *-runner is the file we can use to run the app!
java -jar target/exercise1a-1.0-SNAPSHOT-runner.jar
Look for this on the first line: " started in 0.663s. "
Note how quickly this Quarkus application starts up!