From 7293e7c05a7cc12f47c5ececd29d6cbd4e910032 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Fri, 11 Jun 2021 20:56:06 +0200 Subject: [PATCH 1/2] Add information for setup with maven --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/README.md b/README.md index 7f4d9d4568166..64f4a13dd77c1 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,51 @@ dependencies { } ``` +If you are using Maven, you need to add the credentials in your `~/.m2/settings.xml`: + +```xml + + + + ESJavaGithubPackages + YOUR_GITHUB_USERNAME + YOUR_GITHUB_TOKEN + + + +``` + +In the `pom.xml` for your project add the following repository definition and dependency: + +```xml + + + + + ESJavaGithubPackages + https://maven.pkg.github.com/elastic/elasticsearch-java + + true + + + + + + + co.elastic.clients + elasticsearch-java + 8.0.0-SNAPSHOT + + + com.fasterxml.jackson.core + jackson-databind + 2.12.3 + + + + +``` + ### Your first request ```java From 6984b5c41fe5e3b957c6a38ed5059ddea4d388a7 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Wed, 16 Jun 2021 18:33:02 +0200 Subject: [PATCH 2/2] Update README.md Co-authored-by: Sylvain Wallez --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64f4a13dd77c1..898f428313f58 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ If you are using Maven, you need to add the credentials in your `~/.m2/settings. ``` -In the `pom.xml` for your project add the following repository definition and dependency: +In the `pom.xml` for your project add the following repository definition and dependencies: ```xml