diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc index 2cf86a61f3..7827043753 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc @@ -70,6 +70,29 @@ repositories { } } ---- + +**NOTE:** When using Maven with Spring AI snapshots, pay attention to your Maven mirror configuration. If you have configured a mirror in your `settings.xml` like this: + +```xml + + my-mirror + * + https://my-company-repository.com/maven + +``` + +The wildcard `*` will redirect all repository requests to your mirror, preventing access to Spring snapshot repositories. To fix this, modify the `mirrorOf` configuration to exclude Spring repositories: + +```xml + + my-mirror + *,!spring-snapshots,!central-portal-snapshots + https://my-company-repository.com/maven + +``` + +This configuration allows Maven to access Spring snapshot repositories directly while still using your mirror for other dependencies. + ====== [[dependency-management]]