|
Hello. I changed the packaging type from jar to quarkus on our microservices and everything was ok. And today I tried to do the same for our native image based console applications. But their Jenkins pipelines started to fail. The reason is that the new So, doing a "mvn deploy" doesn't calls deploy:deploy... I tried to attach the maven-deploy-plugin in the project's pom, but it fails because this plugin needs to have something which is produced by the maven jar or install plugin and added to the build context, so it didn't work. I also noted that So, for now I've rollback the changes. Anyone have experience this kind of issues and fixed ? |
Replies: 2 comments
|
/cc @quarkusio/devtools (maven) |
|
The Root causeThe Working solution for native console appsKeep <profiles>
<profile>
<id>native</id>
<properties>
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
</profiles>Then in Jenkins: This way the full lifecycle (including If you need the
|
The
quarkuspackaging lifecycle intentionally omitsmaven-install-pluginandmaven-deploy-plugingoals — it was designed for fast inner-loop dev, not for CI artifact publishing workflows. This is a known gap when migrating console/native apps.Root cause
The
quarkuspackaging type replaces the default Maven lifecycle bindings. It doesn't bindinstall:installordeploy:deploybecause the primary use case is running the app, not publishing a JAR. For microservices this is often acceptable, but for native console applications that Jenkins needs to archive or deploy as artifacts, it breaks the pipeline.Working solution for native console apps
Keep
<packaging>jar</packaging>(orquarkusfor m…