CodexBloom - Programming Q&A Platform

Eclipse 2023-09: implementing Maven Dependency Resolution for Spring Boot Starter in Multi-Module Project

👀 Views: 44 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-12
Eclipse Maven Spring Boot Java

I'm experimenting with I'm building a feature where I'm experiencing issues with Maven dependency resolution in my multi-module Spring Boot project using Eclipse 2023-09. I've set up my project with the following structure: ``` my-app ├── pom.xml ├── module-a │ └── pom.xml └── module-b └── pom.xml ``` The parent `pom.xml` contains the necessary Spring Boot dependencies: ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <version>3.0.0</version> </dependency> ``` However, when I try to run the application from `module-b`, I'm getting the following behavior message: ``` [behavior] Failed to execute goal on project module-b: Could not resolve dependencies for project my-app:module-b:jar:1.0-SNAPSHOT: Failure to find org.springframework.boot:spring-boot-starter:jar:3.0.0 in central (https://repo.maven.apache.org/maven2) was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced ``` I have verified that both `module-a` and `module-b` specify the parent pom correctly: ```xml <parent> <groupId>my-app</groupId> <artifactId>my-app</artifactId> <version>1.0-SNAPSHOT</version> </parent> ``` I also checked the `settings.xml` file and it appears fine. I've tried running `mvn clean install` from the command line, and all dependencies resolve correctly. But when I try to run it within Eclipse, the dependency resolution fails. Additionally, I updated the Eclipse Maven Integration (m2e) plugin to the latest version but it didn't help. I've also refreshed the project and tried cleaning the workspace, yet the scenario continues. What else can I check or try to resolve this dependency scenario in Eclipse? I'm coming from a different tech stack and learning Java. I'm on Linux using the latest version of Java. Is there a simpler solution I'm overlooking?