# Maven couldn't transfer "elasticsearch-watcher:pom:2.0.0-rc1" due to authorization

**URL:** <https://discuss.elastic.co/t/maven-couldnt-transfer-elasticsearch-watcher-pom-2-0-0-rc1-due-to-authorization/33030>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 27, 2015, 1:21am UTC](https://discuss.elastic.co/t/maven-couldnt-transfer-elasticsearch-watcher-pom-2-0-0-rc1-due-to-authorization/33030 "2015-10-27T01:21:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [October 28, 2015, 9:25am UTC](https://discuss.elastic.co/t/maven-couldnt-transfer-elasticsearch-watcher-pom-2-0-0-rc1-due-to-authorization/33030/5 "2015-10-28T09:25:44Z")

</div>

Hey,

this looks as if the client you are using does not load the watcher plugin. Can you show code, where you instantiate the client that you wrap around `WatcherClient`

```java
        Settings settings = Settings.builder().put("plugin.types", WatcherPlugin.class.getName()).build();

        TransportClient client = TransportClient.builder().settings(settings).build();
        client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
        WatcherClient watcherClient = new WatcherClient(client);

```

in addition you can try the above snippet and see if it works.

--Alex

---

_[View the full topic](https://discuss.elastic.co/t/maven-couldnt-transfer-elasticsearch-watcher-pom-2-0-0-rc1-due-to-authorization/33030)._
