Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create. If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description Spring AI BOM uses ${project.version} in dependency management which is wrong
Environment Maven, Gradle etc
Steps to reproduce Import Spring AI BOM and try to use one of the dependencies in your own project. Notice your own project version is used as Maven resolves ${project.version} to nearest POM file not to Spring AI version.
Expected behavior Using the BOM file in Maven should allow me to avoid having to specify the version of any dependency. Because of ${project.version} use, I am now forced to specify a version.
Minimal Complete Reproducible example Create a maven POM file and add this to its dependency management:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bom</artifactId>
<version>${spring-ai.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependenc>
<dependencies>
<!-- Below results in [ERROR] 'dependencies.dependency.version' for org.springframework.ai:spring-ai-starter-mcp-client:jar is missing. -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-client</artifactId>
</dependency>
Comment From: paulbors
PR with fix: https://github.com/spring-projects/spring-ai/pull/4640
Comment From: ilayaperumalg
Hi @paulbors, Thanks for reporting. We have been using Spring AI BOM in our examples and this works fine with the current configuration. Please check the example repo here
Comment From: paulbors
Hey @ilayaperumalg, thanks... we traced it to another issue in our POM file. It's working. Will close MR
Comment From: ilayaperumalg
@paulbors Thanks for confirming!