|
|
|
@ -1,38 +1,34 @@
|
|
|
|
|
== Dependency Management
|
|
|
|
|
|
|
|
|
|
The Spring Cloud Alibaba Bill of Materials (BOM) contains the versions of all the dependencies it uses.
|
|
|
|
|
### Spring Cloud Alibaba Bill of Materials (BOM)
|
|
|
|
|
|
|
|
|
|
Version 0.2.2.BUILD-SNAPSHOT is compatible with the Spring Cloud Finchley. Version 0.1.1.RELEASE is compatible with the Spring Cloud Edgware.
|
|
|
|
|
If you’re a Maven Central user, add our BOM to your pom.xml <dependencyManagement> section. This will allow you to omit versions for any of the Maven dependencies and instead delegate versioning to the BOM.
|
|
|
|
|
|
|
|
|
|
These artifacts are available from Maven Central and Spring Release repository via BOM:
|
|
|
|
|
|
|
|
|
|
[source,xml]
|
|
|
|
|
----
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
|
|
<version>0.2.2.BUILD-SNAPSHOT</version>
|
|
|
|
|
<version>2.1.0.RELEASE</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
If you want to use the latest BUILD-SNAPSHOT version, add Spring Snapshot Repository in pom.xml , Attention: BUILD-SNAPSHOT may be updated in any time
|
|
|
|
|
### Spring Snapshots Maven Repository
|
|
|
|
|
|
|
|
|
|
If you want to use the latest BUILD-SNAPSHOT version, add Spring Snapshot Repository in pom.xml , Attention: BUILD-SNAPSHOT may be updated in any time:
|
|
|
|
|
|
|
|
|
|
[source,xml]
|
|
|
|
|
----
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-snapshot</id>
|
|
|
|
|
<name>Spring Snapshot Repository</name>
|
|
|
|
|
<path>https://repo.spring.io/snapshot</path>
|
|
|
|
|
<id>spring-snapshots</id>
|
|
|
|
|
<name>Spring SnapShots</name>
|
|
|
|
|
<url>https://repo.spring.io/libs-snapshot</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
For example, the 0.2.0.BUILD-SNAPSHOT is available from this repository.
|