Fix broken docs snippet formatting
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
@@ -70,30 +70,32 @@ 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
|
||||
[source,xml]
|
||||
----
|
||||
<mirror>
|
||||
<id>my-mirror</id>
|
||||
<mirrorOf>*</mirrorOf>
|
||||
<url>https://my-company-repository.com/maven</url>
|
||||
</mirror>
|
||||
```
|
||||
----
|
||||
|
||||
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
|
||||
[source,xml]
|
||||
----
|
||||
<mirror>
|
||||
<id>my-mirror</id>
|
||||
<mirrorOf>*,!spring-snapshots,!central-portal-snapshots</mirrorOf>
|
||||
<url>https://my-company-repository.com/maven</url>
|
||||
</mirror>
|
||||
```
|
||||
----
|
||||
|
||||
This configuration allows Maven to access Spring snapshot repositories directly while still using your mirror for other dependencies.
|
||||
|
||||
======
|
||||
|
||||
[[dependency-management]]
|
||||
== Dependency Management
|
||||
@@ -133,9 +135,8 @@ dependencies {
|
||||
implementation 'org.springframework.ai:spring-ai-openai'
|
||||
}
|
||||
----
|
||||
|
||||
+
|
||||
Gradle users can also use the Spring AI BOM by leveraging Gradle (5.0+) native support for declaring dependency constraints using a Maven BOM. This is implemented by adding a 'platform' dependency handler method to the dependencies section of your Gradle build script.
|
||||
|
||||
======
|
||||
|
||||
[[add-dependencies]]
|
||||
|
||||
Reference in New Issue
Block a user