This project uses Quarkus, Java Framework.
- Project Structure
- Configurations
- Workflows
- Running the application in dev mode
- Packaging and running the application
- Dockerizing the application
- Creating a native executable
mp.messaging.outgoing.po-out.connector=smallrye-kafka
mp.messaging.outgoing.po-out.topic=po-workflow
mp.messaging.outgoing.po-out.key.serializer=org.apache.kafka.common.serialization.StringSerializer
mp.messaging.outgoing.po-out.value.serializer=io.quarkus.kafka.client.serialization.ObjectMapperSerializermp.messaging.incoming.po-in.connector=smallrye-kafka
mp.messaging.incoming.po-in.topic=po-workflow
mp.messaging.incoming.po-in.key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
mp.messaging.incoming.po-in.value.deserializer=com.zaga.consumer.MailDeserializerquarkus.rest-client.pdf-api.url=http://localhost:8080/Zaga/document-service
quarkus.rest-client.pdf-api.scope=javax.inject.SingletonYou can run your application in dev mode that enables live coding using:
./mvnw compile quarkus:devNOTE: Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
The application can be packaged using:
./mvnw packageIt produces the quarkus-run.jar file in the target/quarkus-app/ directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/ directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar.
If you want to build an über-jar, execute the following command:
./mvnw package -Dquarkus.package.type=uber-jarThe application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar.
First Package the Application
./mvnw packageCreate the Docker image using Docker daemon
docker build -t projectmanagement-quarkus-app -f src/main/docker/Dockerfile.jvm .Run the container
docker run -d -p 8081:8081 projectmanagement-quarkus-appYou can create a native executable using:
./mvnw package -PnativeOr, if you don't have GraalVM installed, you can run the native executable build in a container using:
./mvnw package -Pnative -Dquarkus.native.container-build=trueYou can then execute your native executable with: ./target/project-management-1.0.0-SNAPSHOT-runner
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.
- MongoDB with Panache (guide): Simplify your persistence code for MongoDB via the active record or the repository pattern
- SmallRye OpenAPI (guide): Document your REST APIs with OpenAPI - comes with Swagger UI
- RESTEasy Reactive (guide): A JAX-RS implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
Easily start your Reactive RESTful Web Services
