Lab: Update the Non‐Spring Dependencies ‐ 5: Make another Small Change - shinyay/spring-boot-2-7-to-3-1-upgrade GitHub Wiki

5: Make another Small Change We found at least one hard-coded non-Spring dependency. Are there any others? Let's keep looking through the pom.xml and find out.

Keep searching through pom.xml.

Open up pom.xml and see if there are any other hard-coded non-Spring dependencies.

com.itextpdf Look at the itextpdf dependency, its version is explicitly stated!

com.itextpdf itextpdf 5.5.13.3 Let's see if Spring will manage this one for us, too.

Comment out the explicit itextpdf version and Assess.

... itextpdf

... Let's Assess by seeing what the dependency tree says:

[~/exercises] $ ./mvnw dependency:tree | grep itextpdf

[ERROR] 'dependencies.dependency.version' for com.itextpdf:itextpdf:jar is missing. @ line 76, column 15 [ERROR] 'dependencies.dependency.version' for com.itextpdf:itextpdf:jar is missing. @ line 76, column 15 Oh no! We're getting errors about a missing itextpdf JAR file. It looks like Spring is not going to manage this one for us.

Let's implement the best practice of using Maven Properties to centrally manage this dependency's version.

⚠️ **GitHub.com Fallback** ⚠️