Lab: Update the Non‐Spring Dependencies ‐ 6: Using Maven Properties - shinyay/spring-boot-2-7-to-3-1-upgrade GitHub Wiki

6: Using Maven Properties As we've mentioned in the previous lesson and in this very lab, it's a best practice to manage required hard-coded dependency versions all in one place using Maven Properties. Let's do this for the itextpdf dependency.

Replace the the version with a property.

Update itextpdf's hard-coded version with a well-named property, which we'll create in the next step:

com.itextpdf com.itextpdf itextpdf ${itextpdf.version} This is property that will be set at the top of the document in the section.

Create the property.

Jump up the top of the pom.xml file and update the section, adding our new property for itextpdf's version:

17 5.5.13.3 ... Done! Let's see how this impacted the project.
⚠️ **GitHub.com Fallback** ⚠️