Maven build scenarios with 'Dependency resolution scenarios' scenarios after upgrading to Spring 5.3
I'm learning this framework and I'm refactoring my project and I've been struggling with this for a few days now and could really use some help... I'm working with an scenario after upgrading my Spring dependencies to version 5.3. When I try to build my project using Maven, I encounter the behavior: `Dependency resolution failed for xxx:xxx:jar:1.0.0: Could not find artifact xxx:xxx:jar:1.0.0 in central (https://repo.maven.apache.org/maven2)`. I have verified that the artifact exists in my local repository and that my `pom.xml` configuration is correct. Here’s a snippet of my `pom.xml` for reference: ```xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>my-app</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.3.0</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>5.3.0</version> </dependency> </dependencies> </project> ``` In the past, my project built fine with Spring 5.2, but after the upgrade, it seems to be failing to resolve one of the transitive dependencies. I even tried running `mvn clean install -U` to force updates, but that didn’t help. Additionally, I checked my `settings.xml` in the `.m2` directory to ensure there are no misconfigurations there. Another thing I noticed is that the dependency tree shows the following: ```bash $ mvn dependency:tree [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ my-app --- [INFO] com.example:my-app:jar:1.0-SNAPSHOT [INFO] +- org.springframework:spring-core:jar:5.3.0:compile [INFO] +- org.springframework:spring-web:jar:5.3.0:compile [INFO] | \- org.springframework:spring-beans:jar:5.3.0:compile [INFO] \- missing: xxx:xxx:jar:1.0.0 ``` Any ideas on why this might be happening and how I can resolve the dependency scenario? I’m using Maven 3.6.3 and Java 11, so I shouldn’t be having compatibility issues. Thanks for your help! This is part of a larger web app I'm building. Thanks in advance! This is my first time working with Java stable. Any feedback is welcome! I'm developing on macOS with Java. What would be the recommended way to handle this?