Eclipse 2023-09: how to to Resolve Maven Dependencies for Multi-Module Project with Jaxb
Quick question that's been bugging me - I need help solving Quick question that's been bugging me - I'm working with an scenario in Eclipse 2023-09 where my multi-module Maven project need to resolve JAXB dependencies. The structure is as follows: ``` parent-project/ âââ pom.xml âââ module-a/ â âââ pom.xml âââ module-b/ âââ pom.xml ``` In the parent `pom.xml`, I have the following dependency declared: ```xml <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> ``` However, in both `module-a` and `module-b`, when I try to build the project, I get the following behavior message: ``` [behavior] Failed to execute goal on project module-a: Could not resolve dependencies for project com.example:module-a:jar:1.0.0: Failed to collect dependencies at javax.xml.bind:jaxb-api:jar:2.3.1: No result for this group in central -> [Help 1] ``` I have already tried the following: 1. Running `mvn clean install` from the command line, which works fine. 2. Refreshing the project in Eclipse and updating Maven project configuration. 3. Checking my Eclipse settings to ensure it's using the correct JDK version (JDK 11), as JAXB is included in JDK 8 but requires explicit dependencies in JDK 9 and above. 4. Verifying that I have the Maven integration for Eclipse (M2E) plugin installed and updated. I suspect it might be related to the way Eclipse resolves dependencies differently compared to the command line. Any suggestions on how to fix this so that Eclipse recognizes the JAXB dependency correctly in my multi-module setup? For context: I'm using Java on Linux. I'd really appreciate any guidance on this. My development environment is Ubuntu 20.04. I'm working with Java in a Docker container on Ubuntu 22.04. Thanks for your help in advance!