# How to set-up elastic maven reposiroty

**URL:** https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986
**Category:** Elasticsearch
**Created:** [December 14, 2016, 8:33am UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986 "2016-12-14T08:33:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lukasSirhal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukassirhal1/32/13873_2.png) [@lukasSirhal1](https://discuss.elastic.co/u/lukasSirhal1)
#### Post date: [December 14, 2016, 8:33am UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/1 "2016-12-14T08:33:51Z")

</div>

Hi,  
i fallowed this [x-pack api-java](https://www.elastic.co/guide/en/x-pack/current/api-java.html), but i still this error when run mvn dependency:tree or mvn install...

```
[ERROR] Failed to execute goal on project es-service: Could not resolve dependencies for project cz.datalite.es:es-service:jar:5.0.0-SNAPSHOT: Failure to find org.elasticsearch.client:x-pack-transport:jar:5.1.1 in http://zealot:8081/artifactory/repo was cached in the local repository, resolution will not be reattempted until the update interval of repo has elapsed or updates are forced

```

I tried set-up our artifactory but if i add elastic repository **[https://artifacts.elastic.co/maven](https://artifacts.elastic.co/maven)** and test the connection i get 404 error page not found. Do anybody know how set-up artifactory properly?

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: [December 14, 2016, 8:47am UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/2 "2016-12-14T08:47:01Z")

</div>

But even if you have the 404 error, are you able to add this repository on artifactory?

---

<div class="post-metadata">

### Author: ![lukasSirhal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukassirhal1/32/13873_2.png) [@lukasSirhal1](https://discuss.elastic.co/u/lukasSirhal1)
#### Post date: [December 14, 2016, 11:27am UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/3 "2016-12-14T11:27:41Z")

</div>

Yes I'am able to add remote repository to artifactory but only add.  
But still i have trouble with download any dependency from eleastic repository

---

<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: [December 18, 2016, 4:42pm UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/4 "2016-12-18T16:42:28Z")

</div>

I think the URL is correct so probably something you need to fix in artifactory.

May be clean maven cache (force update) and start again?

---

<div class="post-metadata">

### Author: ![lukasSirhal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukassirhal1/32/13873_2.png) [@lukasSirhal1](https://discuss.elastic.co/u/lukasSirhal1)
#### Post date: [December 19, 2016, 2:13pm UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/5 "2016-12-19T14:13:12Z")

</div>

Hello,

yes URL is realy correct but when i add new remote repository, and click to "test" button it run to "not found" error.

But it does no matter, because when i run mvn clean install -U it is work perfect.  
Thanks for hints

---

<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: [January 16, 2017, 2:13pm UTC](https://discuss.elastic.co/t/how-to-set-up-elastic-maven-reposiroty/68986/6 "2017-01-16T14:13:13Z")

</div>

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