I want to pull the source code and compile it locally. install jenkins war

Because we can’t upgrade jdk17,I use version 2.442 to incorporate the commit that fixes the vulnerability.
I want to pull the source code and compile the install jenkins war locally. However, the install error message is org.apache.maven.plugins.enforcer.RequireExtensionVersion.

I use apache-maven-3.6.0

The latest LTS baseline 2.462.x still supports java11. And there are no know vulnerabilities reported for it. So why built Jenkins on your own?
You will probably need a new maven version, try the latest 3.9.x

1 Like

thank u ,i try to use 2.462.x