# Maven and X-Pack 5.0.0-alpha5

**URL:** https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716
**Category:** Elasticsearch
**Created:** [September 28, 2016, 3:08pm UTC](https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716 "2016-09-28T15:08:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)
#### Post date: [September 28, 2016, 3:08pm UTC](https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716/1 "2016-09-28T15:08:44Z")

</div>

Hi, I'm experimenting by porting a 2.x application to 5.0. This application requires Shield. When I depend on org.elasticsearch.plugin/x-pack/5.0.0-alpha5 (there's no beta1?), I get the following:

[ERROR] Failed to execute goal on project web.login: Could not resolve dependencies for project com.redbite:web.login:jar:0.3.1.BUILD-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.plugin:x-pack:jar:5.0.0-alpha5 -\> org.elasticsearch.plugin:transport-netty4-client-client:jar:5.0.0-alpha5: Failed to read artifact descriptor for org.elasticsearch.plugin:transport-netty4-client-client:jar:5.0.0-alpha5: Could not transfer artifact org.elasticsearch.plugin:transport-netty4-client-client:pom:5.0.0-alpha5 from/to elasticsearch-releases ([https://maven.elasticsearch.org/releases](https://maven.elasticsearch.org/releases)): Not authorized , ReasonPhrase:Unauthorized. -\> [Help 1]

Any ideas? Thanks.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 28, 2016, 4:01pm UTC](https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716/2 "2016-09-28T16:01:29Z")

</div>

You have to read that: [https://www.elastic.co/guide/en/x-pack/5.0/api-java.html#\_installing\_xpackclient](https://www.elastic.co/guide/en/x-pack/5.0/api-java.html#_installing_xpackclient)

And adapt your pom.  
Basically add this repo:

```auto
<repositories>
      <!-- add the elasticsearch repo -->
      <repository>
         <id>elasticsearch-releases</id>
         <url>https://artifacts.elastic.co/maven</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
   </repositories>

```

Then upgrade to the beta1 version.

HTH

---

<div class="post-metadata">

### Author: ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)
#### Post date: [September 29, 2016, 8:59am UTC](https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716/3 "2016-09-29T08:59:15Z")

</div>

Thanks. I did search, though apparently not well. Thanks!

---

<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: [July 5, 2017, 10:16pm UTC](https://discuss.elastic.co/t/maven-and-x-pack-5-0-0-alpha5/61716/4 "2017-07-05T22:16:14Z")

</div>


