# Elasticsearch-2.3.5 with Maven -Build Failure

**URL:** https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318
**Category:** Elasticsearch
**Created:** [August 30, 2016, 2:00pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318 "2016-08-30T14:00:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![srikanth\_muddu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@srikanth\_muddu](https://discuss.elastic.co/u/srikanth_muddu)
#### Post date: [August 30, 2016, 2:00pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318/1 "2016-08-30T14:00:11Z")

</div>

i have downloaded elasticsearch 2.3.5.tar.gz and extracted it  
-\>done mvn package for ES-2.3.5  
-\>when i execute [run.sh](http://run.sh) with ./run.sh

I get this error...please help me out

Scanning for projects...

[INFO] Storing buildNumber: null at timestamp: 1472564933507  
[WARNING] Cannot get the branch information from the git repository:  
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git

[INFO] Executing: /bin/sh -c cd /home/manmeet/WORK/cavisson/src/netforest/elasticsearch/elasticsearch-2.3.5 && git rev-parse --verify HEAD  
[INFO] Working directory: /home/manmeet/WORK/cavisson/src/netforest/elasticsearch/elasticsearch-2.3.5  
[INFO] Storing buildScmBranch: UNKNOWN\_BRANCH  
[INFO]  
[INFO] --- maven-antrun-plugin:1.8:run (set-permgen) @ parent ---  
[INFO] Executing tasks

main:  
[INFO] Executed tasks  
[INFO]  
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ parent ---  
[INFO] ------------------------------------------------------------------------  
[INFO] Reactor Summary:  
[INFO]  
[INFO] Build Tools and Resources .......................... SUCCESS [7.911 s]  
[INFO] Elasticsearch: Parent POM .......................... FAILURE [12.691 s]  
[INFO] Elasticsearch: Core ................................ SKIPPED  
[INFO] Distribution: Parent POM ........................... SKIPPED  
[INFO] Distribution: ZIP .................................. SKIPPED  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 41.902 s  
[INFO] Finished at: 2016-08-30T19:18:56+05:30  
[INFO] Final Memory: 42M/287M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project parent: Resources archive cannot be found. Failure to find org.elasticsearch:rest-api-spec:jar:2.3.5-SNAPSHOT in [https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/) was cached in the local repository, resolution will not be reattempted until the update interval of oss-snapshots has elapsed or updates are forced  
[ERROR]  
[ERROR] Try downloading the file manually from the project website.  
[ERROR]  
[ERROR] Then, install it using the command:  
[ERROR] mvn install:install-file -DgroupId=org.elasticsearch -DartifactId=rest-api-spec -Dversion=2.3.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file  
[ERROR]  
[ERROR] Alternatively, if you host your own repository you can deploy the file there:  
[ERROR] mvn deploy:deploy-file -DgroupId=org.elasticsearch -DartifactId=rest-api-spec -Dversion=2.3.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]  
[ERROR]  
[ERROR]  
[ERROR] org.elasticsearch:rest-api-spec:jar:2.3.5-SNAPSHOT  
[ERROR]  
[ERROR] from the specified remote repositories:  
[ERROR] elasticsearch-releases ([http://maven.elasticsearch.org/releases](http://maven.elasticsearch.org/releases), releases=true, snapshots=false),  
[ERROR] oss-snapshots ([https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/), releases=true, snapshots=true),  
[ERROR] sonatype-nexus-snapshots ([https://oss.sonatype.org/content/repositories/snapshots](https://oss.sonatype.org/content/repositories/snapshots), releases=false, snapshots=true),  
[ERROR] central ([https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2), releases=true, snapshots=false)  
[ERROR] -\> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)  
[ERROR]  
[ERROR] After correcting the problems, you can resume the build with the command  
[ERROR] mvn -rf :parent

---

<div class="post-metadata">

### Author: ![srikanth\_muddu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@srikanth\_muddu](https://discuss.elastic.co/u/srikanth_muddu)
#### Post date: [September 7, 2016, 6:07am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318/2 "2016-09-07T06:07:35Z")

</div>

[INFO] Reactor Summary:  
[INFO]  
[INFO] Build Tools and Resources .......................... SUCCESS [1.765 s]  
[INFO] Elasticsearch: Parent POM .......................... SUCCESS [3.705 s]  
[INFO] Elasticsearch: Core ................................ SUCCESS [01:00 min]  
[INFO] Distribution: Parent POM ........................... SUCCESS [4.629 s]  
[INFO] Distribution: ZIP .................................. FAILURE [10.670 s]  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 01:23 min  
[INFO] Finished at: 2016-09-07T00:17:08-05:00  
[INFO] Final Memory: 57M/401M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack-modules) on project elasticsearch: Unable to find artifact. Could not find artifact org.elasticsearch.module:reindex:zip:2.3.5-SNAPSHOT in oss-snapshots ([https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/))  
[ERROR]  
[ERROR] Try downloading the file manually from the project website.  
[ERROR]  
[ERROR] Then, install it using the command:  
[ERROR] mvn install:install-file -DgroupId=org.elasticsearch.module -DartifactId=reindex -Dversion=2.3.5-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file  
[ERROR]  
[ERROR] Alternatively, if you host your own repository you can deploy the file there:  
[ERROR] mvn deploy:deploy-file -DgroupId=org.elasticsearch.module -DartifactId=reindex -Dversion=2.3.5-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]  
[ERROR]  
[ERROR]  
[ERROR] org.elasticsearch.module:reindex:zip:2.3.5-SNAPSHOT  
[ERROR]  
[ERROR] from the specified remote repositories:  
[ERROR] elasticsearch-releases ([http://maven.elasticsearch.org/releases](http://maven.elasticsearch.org/releases), releases=true, snapshots=false),  
[ERROR] oss-snapshots ([https://oss.sonatype.org/content/repositories/snapshots/](https://oss.sonatype.org/content/repositories/snapshots/), releases=true, snapshots=true),  
[ERROR] sonatype-nexus-snapshots ([https://oss.sonatype.org/content/repositories/snapshots](https://oss.sonatype.org/content/repositories/snapshots), releases=false, snapshots=true),  
[ERROR] central ([https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2), releases=true, snapshots=false)  
[ERROR] -\> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)  
[ERROR]  
[ERROR] After correcting the problems, you can resume the build with the command  
[ERROR] mvn -rf :elasticsearch

It could not find the artifact in the repositories :  
[https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/module/reindex/](https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/module/reindex/)  
the above repository has only 2.3.6 & 2.4.1 SNAPSHOTS  
i need 2.3.5

else  
if i could have the jar file i can download it manually  
please help me out with this ....

---

<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 7, 2016, 6:34am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318/3 "2016-09-07T06:34:44Z")

</div>

Do you need to compile it? Or just download it from our website?  
If compile, why a SNAPSHOT version?  
2.3.5 has been released.  
Branch 2.3 should be on 2.3.6-SNAPSHOT if I'm not mistaken.

---

<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:22pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-5-with-maven-build-failure/59318/4 "2017-07-05T22:22:07Z")

</div>


