diff --git a/README.md b/README.md index 3cf90ba459..372c7bec34 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Build Status](https://apm-ci.elastic.co/buildStatus/icon?job=apm-agent-java%2Fapm-agent-java-mbp%2Fmain)](https://apm-ci.elastic.co/job/apm-agent-java/job/apm-agent-java-mbp/job/main/) [![codecov](https://codecov.io/gh/elastic/apm-agent-java/branch/main/graph/badge.svg)](https://codecov.io/gh/elastic/apm-agent-java) -[![Maven Central](https://img.shields.io/maven-central/v/co.elastic.apm/apm-agent-api.svg)](https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aelastic-apm-agent&sort=published) +[![Maven Central](https://img.shields.io/maven-central/v/co.elastic.apm/apm-agent-api.svg)](https://mvnrepository.com/artifact/co.elastic.apm/elastic-apm-agent/latest) # apm-agent-java diff --git a/docs/api-elastic.asciidoc b/docs/api-elastic.asciidoc index d391356c2e..2fa68ad06a 100644 --- a/docs/api-elastic.asciidoc +++ b/docs/api-elastic.asciidoc @@ -29,7 +29,7 @@ compile "co.elastic.apm:apm-agent-api:$elasticApmVersion" ---- Replace the version placeholders with the -link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%20a%253Aapm-agent-api&sort=published[ +link:https://mvnrepository.com/artifact/co.elastic.apm/apm-agent-api/latest[ latest version from maven central]: image:https://img.shields.io/maven-central/v/co.elastic.apm/apm-agent-api.svg[Maven Central] diff --git a/docs/api-opentracing.asciidoc b/docs/api-opentracing.asciidoc index 50a8472b0a..2c766ea57b 100644 --- a/docs/api-opentracing.asciidoc +++ b/docs/api-opentracing.asciidoc @@ -42,7 +42,7 @@ compile "co.elastic.apm:apm-opentracing:$elasticApmVersion" ---- Replace the version placeholders with the -link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aapm-opentracing&sort=published[latest version from maven central]: +link:https://mvnrepository.com/artifact/co.elastic.apm/apm-opentracing/latest[latest version from maven central]: image:https://img.shields.io/maven-central/v/co.elastic.apm/apm-opentracing.svg[Maven Central] diff --git a/docs/plugin-api.asciidoc b/docs/plugin-api.asciidoc index 347e208fca..a63713670e 100644 --- a/docs/plugin-api.asciidoc +++ b/docs/plugin-api.asciidoc @@ -29,7 +29,7 @@ compile "co.elastic.apm:apm-agent-plugin-sdk:$elasticApmVersion" ---- Replace the version placeholders with the -link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aapm-agent-api&sort=published[latest version from maven central]: +link:https://mvnrepository.com/artifact/co.elastic.apm/apm-agent-api/latest[latest version from maven central]: image:https://img.shields.io/maven-central/v/co.elastic.apm/apm-agent-api.svg[Maven Central] An https://github.com/elastic/apm-agent-java-plugin-example[example repo] and an diff --git a/docs/setup-attach-api.asciidoc b/docs/setup-attach-api.asciidoc index d6edbbc3fb..85a068b74e 100644 --- a/docs/setup-attach-api.asciidoc +++ b/docs/setup-attach-api.asciidoc @@ -36,7 +36,7 @@ the application with a JDK. However, it will be required in the following cases: [[setup-attach-api-usage]] ==== Usage -Declare a dependency to the link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aapm-agent-attach&sort=published[`apm-agent-attach`] artifact. +Declare a dependency to the link:https://mvnrepository.com/artifact/co.elastic.apm/apm-agent-attach/latest[`apm-agent-attach`] artifact. [source,xml] .pom.xml diff --git a/docs/setup-attach-cli.asciidoc b/docs/setup-attach-cli.asciidoc index a9922999d2..2a4afc7554 100644 --- a/docs/setup-attach-cli.asciidoc +++ b/docs/setup-attach-cli.asciidoc @@ -31,7 +31,7 @@ It's not possible to attach to a J9 VM from a HotSpot-based VM and vice-versa. ==== Download You can download the attach program from maven central: -link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aapm-agent-attach-cli&sort=published[maven central] +link:https://mvnrepository.com/artifact/co.elastic.apm/apm-agent-attach-cli/latest[maven central] NOTE: In versions prior to 1.22.0, you will have to download the `standalone` jar of the `apm-agent-attach` artifact. diff --git a/docs/setup/get-agent.asciidoc b/docs/setup/get-agent.asciidoc index 5ab01cbb94..9bfb2aa553 100644 --- a/docs/setup/get-agent.asciidoc +++ b/docs/setup/get-agent.asciidoc @@ -2,7 +2,8 @@ Java agent releases are published to https://repo.maven.apache.org/maven2/[Maven central], in order to get a copy you can either: -- download manually from link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aelastic-apm-agent&sort=published[Maven central]. +- download manually the link:https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=co.elastic.apm&a=elastic-apm-agent&v=LATEST[latest agent] +or link:https://mvnrepository.com/artifact/co.elastic.apm/elastic-apm-agent[previous releases] from Maven central. - download with `curl`: + [source,bash] @@ -11,7 +12,7 @@ curl -o 'elastic-apm-agent.jar' -L 'https://oss.sonatype.org/service/local/artif ---- In addition, we also publish a dedicated build of the Java agent which ships the latest log4j2 version and for that reason requires at least Java 8. -This build can also be found on link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aelastic-apm-agent-java8&sort=published[Maven central]. +This build can also be found on link:https://mvnrepository.com/artifact/co.elastic.apm/elastic-apm-agent-java8/latest[Maven central]. // end::maven-central[] diff --git a/docs/upgrading.asciidoc b/docs/upgrading.asciidoc index 352186de1e..68f59ac75b 100644 --- a/docs/upgrading.asciidoc +++ b/docs/upgrading.asciidoc @@ -15,7 +15,7 @@ Before upgrading the agent, be sure to review the: . Shut down the application. . Download the latest release of the agent jar file from -link:https://central.sonatype.com/search?q=g%253Aco.elastic.apm%2520a%253Aelastic-apm-agent&sort=published[maven central]. +link:https://mvnrepository.com/artifact/co.elastic.apm/elastic-apm-agent/latest[maven central]. . Optionally change JVM settings, e.g., if the path to the agent jar has changed due to a different file name. . Restart the application.