# X-pack-5.5.0.jar download location

**URL:** <https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460>\
**Category:** Elasticsearch\
**Created:** [July 10, 2017, 11:58am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460 "2017-07-10T11:58:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 10, 2017, 11:58am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/1 "2017-07-10T11:58:43Z")

</div>

Hi,  
I'm trying to upgrade my application to version 5.5.0. I have a dependency to x-pack.jar, somebody know where to download the newest jar, x-pack.jar ?

maybe a litte bit more context. I need following imports to test watcher queries:

```
import org.elasticsearch.xpack.watcher.client.WatcherClient;
import org.elasticsearch.xpack.watcher.transport.actions.execute.ExecuteWatchRequest;
import org.elasticsearch.xpack.watcher.transport.actions.execute.ExecuteWatchResponse;
import org.elasticsearch.xpack.watcher.transport.actions.put.PutWatchRequestBuilder;
import org.elasticsearch.xpack.watcher.transport.actions.put.PutWatchResponse;

```

Thanks

pts0

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 10, 2017, 12:30pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/2 "2017-07-10T12:30:52Z")

</div>

I believe you're looking for [these instructions](https://www.elastic.co/guide/en/x-pack/5.5/api-java.html).

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 10, 2017, 12:50pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/3 "2017-07-10T12:50:40Z")

</div>

Hi @TimV,  
I already got that jar. So you mean all the class i need are now encapsulated there. I will try to rewrite, adjust my test.  
By the way the link [https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-installing-offline](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-installing-offline) is broken in dokumentation 5.5.0.

thanks

pts0

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 10, 2017, 1:38pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/4 "2017-07-10T13:38:40Z")

</div>

Hmm,

I have some trouble or missing dependencies. The doc at [https://www.elastic.co/guide/en/x-pack/5.5/api-java.html#\_obtaining\_the\_literal\_watcherclient\_literal](https://www.elastic.co/guide/en/x-pack/5.5/api-java.html#_obtaining_the_literal_watcherclient_literal) bring the example, but it use following inports:

```
import org.elasticsearch.xpack.client.PreBuiltXPackTransportClient;
import org.elasticsearch.xpack.XPackClient;
import org.elasticsearch.xpack.XPackPlugin;
import org.elasticsearch.watcher.client.WatcherClient;

```

Where are this class included ? In x-pack-transport.java are not there .

Thanks

pts0

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 10, 2017, 1:48pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/5 "2017-07-10T13:48:55Z")

</div>

can you share more about your setup? Is it mvn? Is it gradle? Are you downloading transitive dependencies?

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 10, 2017, 2:01pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/6 "2017-07-10T14:01:40Z")

</div>

Hi,  
Yes sure I can.  
Is maven, I have following ( elastic related ) dependecies:

```
<dependency>
      <groupId>org.elasticsearch.client</groupId>
      <artifactId>rest</artifactId>
</dependency>
<dependency>
      <groupId>org.elasticsearch.test</groupId>
      <artifactId>framework</artifactId>
 </dependency>
<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>x-pack-transport</artifactId>
</dependency>
<dependency>
      <groupId>org.elasticsearch.plugin</groupId>
      <artifactId>lang-mustache-client</artifactId>
</dependency>

```

and in parent

```
  <dependency>
       <groupId>org.elasticsearch</groupId>
       <artifactId>elasticsearch</artifactId>
  </dependency>

<dependency>
        <groupId>org.elasticsearch.test</groupId>
        <artifactId>framework</artifactId>
        <scope>test</scope>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

```

I m really missing alle the x-pack client stuff, to execure the alerting queries. This is the class i was using and was working with 5.4.0 x-pack jar.

```
public abstract class AbstractWatcherTest extends ESSingleNodeTestCase {
...
 void executeWatcher(String watcherId) {
    WatcherClient watcherClient = new WatcherClient(client());
    PutWatchRequestBuilder putWatchRequestBuilder = watcherClient.preparePutWatch(watcherId);
    putWatchRequestBuilder.setSource(this.watcherBytesReference.get(watcherId)).setActive(false);
    PutWatchResponse putWatchResponse = putWatchRequestBuilder.get();
    assertNotNull(putWatchResponse.getId());
    ExecuteWatchRequest executeWatchRequest = new ExecuteWatchRequest(watcherId);
    ExecuteWatchResponse executeWatchResponse = watcherClient.executeWatch(executeWatchRequest).actionGet();
    assertNotNull(executeWatchResponse.getRecordId());
    flushAllIndexes();
  }
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 11, 2017, 12:14pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/7 "2017-07-11T12:14:32Z")

</div>

when you run `mvn dependency:tree`, can you spot `org.elasticsearch.plugin:x-pack-api`? If not can you try to include it?

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 11, 2017, 1:51pm UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/8 "2017-07-11T13:51:44Z")

</div>

Hi,

tnx, i don't get it as dependency. If I added then I need artifact `org.elasticsearch.plugin:x-pack-api:jar:5.5.0` , that i can't find in my repo 🙂 Can I get it from somewhere ?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 12, 2017, 1:39am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/9 "2017-07-12T01:39:47Z")

</div>

> [@pts0](#):
>
> the link [Installing X-Pack | X-Pack for the Elastic Stack [6.2] | Elastic](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-installing-offline) is broken in dokumentation 5.5.0.

Yes, we've rearranged our documentation in 5.5 and some old links may not be valid anymore.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 12, 2017, 2:13am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/10 "2017-07-12T02:13:15Z")

</div>

> [@pts0](#):
>
> tnx, i don't get it as dependency. If I added then I need artifact org.elasticsearch.plugin:x-pack-api:jar:5.5.0 , that i can't find in my repo 🙂 Can I get it from somewhere ?

That JAR is available from the same repository as the x-pack-transport JAR, and is a listed dependency in the [POM for x-pack-transport](https://artifacts.elastic.co/maven/org/elasticsearch/client/x-pack-transport/5.5.0/x-pack-transport-5.5.0.pom).

If it's not working for you, then something strange is going on with your maven dependencies, because the POM and JAR files are definitely there.

The POM for x-pack-api is here: [https://artifacts.elastic.co/maven/org/elasticsearch/plugin/x-pack-api/5.5.0/x-pack-api-5.5.0.pom](https://artifacts.elastic.co/maven/org/elasticsearch/plugin/x-pack-api/5.5.0/x-pack-api-5.5.0.pom)

You can get the JAR from the same location, but you really do want to sort out whatever is going on in maven, because the API has a bunch of dependencies, and you probably don't want to be downloading them all by hand.

---

<div class="post-metadata">

**Author:** ![pts0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pts0/32/17811_2.png) [@pts0](https://discuss.elastic.co/u/pts0)\
**Post date:** [July 12, 2017, 5:12am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/11 "2017-07-12T05:12:02Z")

</div>

Hi @TimV,

thanks I got the jar. I will now trz out if it work.  
Problem with my "maven" ist that I m behind a proxy and no access to maven repo from elastic. Just keep in mind offline people ... some company are very restrictive about which repo can be directly connected.

Now I got all I need to run my Java tests on x-pack painless scripts.

Thanks

pts0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 9, 2017, 5:12am UTC](https://discuss.elastic.co/t/x-pack-5-5-0-jar-download-location/92460/12 "2017-08-09T05:12:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
