Skip to content

Commit e6dcd61

Browse files
authored
Update snapshot docs (open-telemetry#14802)
1 parent 62dd98a commit e6dcd61

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

CONTRIBUTING.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,28 @@ See [Running the tests](./docs/contributing/running-tests.md) for more details.
1515

1616
### Snapshot builds
1717

18-
For developers testing code changes before a release is complete, there are
19-
snapshot builds of the `main` branch. They are available from
20-
the Sonatype snapshot repository at `https://central.sonatype.com/repository/maven-snapshots/`
21-
([browse](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/)).
18+
For developers testing code changes before a release is complete, snapshot builds of the `main`
19+
branch are available from the Sonatype snapshot repository at `https://central.sonatype.com/repository/maven-snapshots/`.
20+
21+
To find the latest snapshot, check the maven metadata (replace `{LATEST_VERSION}` with the current
22+
stable release):
23+
24+
```
25+
https://central.sonatype.com/repository/maven-snapshots/io/opentelemetry/javaagent/opentelemetry-javaagent/{LATEST_VERSION}-SNAPSHOT/maven-metadata.xml
26+
```
27+
28+
Look for the `<timestamp>` and `<buildNumber>` in the XML response, then construct the download URL:
29+
30+
```
31+
https://central.sonatype.com/repository/maven-snapshots/io/opentelemetry/javaagent/opentelemetry-javaagent/{VERSION}-SNAPSHOT/opentelemetry-javaagent-{VERSION}-{TIMESTAMP}-{BUILD_NUMBER}.jar
32+
```
33+
34+
For example, if the metadata shows timestamp `20250925.160708` and build number `56` for version
35+
`2.21.0`, the snapshot JAR URL would be:
36+
37+
```
38+
https://central.sonatype.com/repository/maven-snapshots/io/opentelemetry/javaagent/opentelemetry-javaagent/2.21.0-SNAPSHOT/opentelemetry-javaagent-2.21.0-20250925.160708-56.jar
39+
```
2240

2341
### Building from source
2442

0 commit comments

Comments
 (0)