# Can't get 5.0.0-alpha5 from Maven

**URL:** https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726
**Category:** Elasticsearch
**Created:** [August 23, 2016, 6:05pm UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726 "2016-08-23T18:05:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![robert-blankenship](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robert-blankenship/32/11287_2.png) [@robert-blankenship](https://discuss.elastic.co/u/robert-blankenship)
#### Post date: [August 23, 2016, 6:05pm UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726/1 "2016-08-23T18:05:03Z")

</div>

I'm having trouble getting the x-pack plugin 5.0.0-alpha5 from Maven to download using SBT. I added the Maven repository ( "elasticsearch-releases" at "[https://maven.elasticsearch.org/releases](https://maven.elasticsearch.org/releases)"), but still no luck. Here is the output from SBT.

```auto
Error:Error while importing SBT project:
[info] Resolving org.ow2.asm#asm;4.1 ...
[info] Resolving org.ow2.asm#asm-tree;4.1 ...
[info] Resolving org.ow2.asm#asm-analysis;4.1 ...
[info] Resolving org.ow2.asm#asm-util;4.1 ...
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.elasticsearch.plugin#transport-netty4-client-client;5.0.0-alpha5: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn] Note: Unresolved dependencies path:
[warn] org.elasticsearch.plugin:transport-netty4-client-client:5.0.0-alpha5
[warn] +- org.elasticsearch.plugin:x-pack:5.0.0-alpha5 (/Users/robert-blankenship/my-project/build.sbt#L6-12)
[warn] +- com.personal:my-project_2.11:0.1
[trace] Stack trace suppressed: run 'last ec2-tools/*:update' for the full output.
[trace] Stack trace suppressed: run 'last ec2-tools/*:ssExtractDependencies' for the full output.
[error] (my-project/*:update) sbt.ResolveException: unresolved dependency: org.elasticsearch.plugin#transport-netty4-client-client;5.0.0-alpha5: not found
[error] (my-project/*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: org.elasticsearch.plugin#transport-netty4-client-client;5.0.0-alpha5: not found
[error] Total time: 5 s, completed Aug 23, 2016 10:58:48 AM

```

The 5.0.0-alpha4 dependency downloads just fine, but I can't find the XPackTransportClient class in it. I'm following the XPack documentation at [https://www.elastic.co/guide/en/x-pack/v5.0.0-alpha5-docs/java-clients.html](https://www.elastic.co/guide/en/x-pack/v5.0.0-alpha5-docs/java-clients.html)

---

<div class="post-metadata">

### Author: ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)
#### Post date: [August 24, 2016, 11:58am UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726/2 "2016-08-24T11:58:46Z")

</div>

Hi Robert,

The XPackTransportClient is new in alpha 5. It looks like there is a bug in the generated pom file for alpha5:

```
<dependency>
  <groupId>org.elasticsearch.plugin</groupId>
  <artifactId>transport-netty4-client-client</artifactId>
  <version>5.0.0-alpha5</version>
  <scope>compile</scope>
</dependency>

```

That dependency should just be `transport-netty4-client`, which is published to maven central. In your build, can you manually exclude the bad dependency and add one for the correct one, which would be (for maven):

```
<dependency>
  <groupId>org.elasticsearch.plugin</groupId>
  <artifactId>transport-netty4-client</artifactId>
  <version>5.0.0-alpha5</version>
  <scope>compile</scope>
</dependency>
```

---

<div class="post-metadata">

### Author: ![robert-blankenship](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robert-blankenship/32/11287_2.png) [@robert-blankenship](https://discuss.elastic.co/u/robert-blankenship)
#### Post date: [August 26, 2016, 6:45pm UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726/3 "2016-08-26T18:45:19Z")

</div>

Hey Jaymode,

I'm using Scala; here is my build.sbt file:

```auto
resolvers += "elasticsearch-releases" at "https://maven.elasticsearch.org/releases"

libraryDependencies ++= Seq(
  "com.amazonaws" % "aws-java-sdk" % "1.9.8",
  "com.jcraft" % "jsch" % "0.1.53",
  "org.elasticsearch.plugin" % "transport-netty4-client" % "5.0.0-alpha5",
  "org.elasticsearch.plugin" % "x-pack" % "5.0.0-alpha5",
  "org.elasticsearch.client" % "transport" % "5.0.0-alpha5"
)

```

I still meet the same error. Is there a way to ignore a sub-dependency then? Or can we update the .pom file?

---

<div class="post-metadata">

### Author: ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)
#### Post date: [August 26, 2016, 8:10pm UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726/4 "2016-08-26T20:10:24Z")

</div>

maybe try swapping the x-pack dependency line with:

```
"org.elasticsearch.plugin" % "x-pack" % "5.0.0-alpha5" exclude("org.elasticsearch.plugin", "transport-netty4-client-client")
```

---

<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 6, 2017, 1:40pm UTC](https://discuss.elastic.co/t/cant-get-5-0-0-alpha5-from-maven/58726/5 "2017-07-06T13:40:27Z")

</div>


