Skip to content

Fix missing dependency version during mvn verify, put shared example dependencies to parent#48

Open
mvlcak wants to merge 2 commits into
spring-ai-community:mainfrom
mvlcak:fix-examples-poms
Open

Fix missing dependency version during mvn verify, put shared example dependencies to parent#48
mvlcak wants to merge 2 commits into
spring-ai-community:mainfrom
mvlcak:fix-examples-poms

Conversation

@mvlcak
Copy link
Copy Markdown

@mvlcak mvlcak commented May 15, 2026

This PR fixes why mvn clean package failed with missing dependency version for one of the examples. Each example module independently declared its own spring-ai.version and spring-boot parent, leading to version drift across examples This caused build failures and made version updates error-prone.

Changes

examples/pom.xml (examples-parent)

  • Added <parent> pointing to spring-ai-agent-utils-parent so spring-ai.version is now inherited from the root pom
  • Bumped version to 0.2.0-SNAPSHOT
  • Added spring-boot.version property (4.0.6)
  • Added <dependencyManagement> importing spring-boot-dependencies and spring-ai-bom BOMs — replaces spring-boot-starter-parent as the source of dependency versions
  • Added <build><plugin> for spring-boot-maven-plugin
  • Removed <repositories> — inherited from root

Result

Spring AI and Spring Boot versions are now defined in one place.
Bumping a version requires changing a single property.

@mvlcak mvlcak changed the title Fix defining same dependencies in every example Fix missing dependency version during mvn verify, put shared example dependencies to parent May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant