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 e4f2f4391..782704375 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,13 +70,29 @@ repositories { } } ---- -**NOTE:** If you're using Maven mirror settings (typically in `settings.xml`), ensure your `` configuration excludes Spring 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 - *,!spring-snapshots,!central-portal-snapshots - + 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]]