Skip to content

Commit 0628dc3

Browse files
shakuzenjoshiste
authored andcommitted
Fix snapshot build instructions
The previous code snippet contained code which would go in the `distributionManagement` section of a POM, meant for where to publish snapshots. It is however intended for users to use in their POMs to access published snapshot versions of the Spring Boot Admin artifacts. This change makes that more clear and gives the correct snippet to copy-and-paste into one's POM.
1 parent 246698b commit 0628dc3

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ Spring, Spring Boot and Spring Cloud are trademarks of [Pivotal Software, Inc.](
101101
*View history of registered applications*
102102

103103
## Snapshot builds
104-
You can access snapshot builds from the sonatype repository:
104+
You can access snapshot builds from the sonatype snapshot repository by adding the following to your `repositories`:
105105
```xml
106-
<snapshotRepository>
107-
<id>sonatype-nexus-snapshots</id>
108-
<name>Sonatype Nexus Snapshots</name>
109-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
110-
</snapshotRepository>
106+
<repository>
107+
<id>sonatype-nexus-snapshots</id>
108+
<name>Sonatype Nexus Snapshots</name>
109+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
110+
<snapshots>
111+
<enabled>true</enabled>
112+
</snapshots>
113+
<releases>
114+
<enabled>false</enabled>
115+
</releases>
116+
</repository>
111117
```
112118

113119
## Build

0 commit comments

Comments
 (0)