Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update broken agent download link #3087

Merged
merged 3 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/api-elastic.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion docs/api-opentracing.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
2 changes: 1 addition & 1 deletion docs/plugin-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/setup-attach-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/setup-attach-cli.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 3 additions & 2 deletions docs/setup/get-agent.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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[]

Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down