Thank you very much for your comments, they were very helpful. Just to add to this, in my case, I use a GitLab pipeline, so these files also need to be considered. Here's my example:
native-build-dev:
stage: native-build-dev
tags:
- native-build
image: maven:3.9.6-eclipse-temurin-21
script:
- echo "Compiling..."
- mvn -U -s settings.xml clean package -Dnative -Dquarkus.native.remote-container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi9 -quarkus-mandrel-builder-image:jdk-21 -Dquarkus.profile=dev
- ls -la target/
artifacts:
paths:
- target/*.jar
- target/*-runner
- target/*.so