Jenkins-Maven builds are failing after Jenkins upgrade version 2.332.3

More details and a link to a very good page that outlines alternatives is included in this previous answer:

The maven job type is not a good choice. You need to transition those jobs to a different job type. Most of them are transitioning to Pipeline job types so that they can continue to build with their preferred JDK no matter which JDK is running the Jenkins controller.

You can read more about why it is not a good choice in the “Risks” section of the maven plugin documentation: