maven best practice

23 views
Skip to first unread message

Lee Breisacher

unread,
Feb 28, 2020, 1:18:32 PM2/28/20
to Jenkins Users
I am a newbie to Jenkins. I would like to know if there is a single best-practice for ordinary maven project builds. From the reading I've done so far, I see three different approaches:

1. The tutorial here: https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/  uses Docker-in-Docker to run a maven docker image to execute mvn. Seems rather odd to me.

What is recommended these days?

Thanks,

Lee

James Nord

unread,
Mar 2, 2020, 8:09:53 PM3/2/20
to Jenkins Users
I would steer clear of option 3 (and I wrote the maven-releasr-plugin-plugin)

I use option 2 daily.
whatever you choose manage your maven settings with config-file-provider plugin and credentials.

option 2 is quicker to setup than a quick pipeline and then adding all the reporters you want (junit, checkstyle,spotbugs etc) but that would be the other way too.

Reply all
Reply to author
Forward
0 new messages