-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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>