# Building OSS release version of Elastic Search 6.3.1

**URL:** https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041
**Category:** Elasticsearch
**Created:** [July 28, 2018, 5:18pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041 "2018-07-28T17:18:38Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nspatil](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nspatil](https://discuss.elastic.co/u/nspatil)
#### Post date: [July 28, 2018, 5:18pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/1 "2018-07-28T17:18:38Z")

</div>

Hi,  
I am new to Elastic Search, I am trying to build OSS release version of 6.3.1 from source code. I followed instructions mentioned in readme, downloaded the code from GIT and ran "gradlew assemble" command. Build is successful, but i see zip files created under "C:\ES\elasticsearch-6.3.1\distribution\archives\oss-zip\build\distributions" with name elasticsearch-oss-6.3.1-SNAPSHOT.zip.

I am guessing SNAPSHOT in name indicates its developer build not release? Please help me how i can build OSS release version of Elastic Search 6.3.1 from source code.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 28, 2018, 6:10pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/2 "2018-07-28T18:10:43Z")

</div>

Why are looking to build instead of [downloading it](https://www.elastic.co/downloads/past-releases/elasticsearch-oss-6-3-1)?

---

<div class="post-metadata">

### Author: ![nspatil](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nspatil](https://discuss.elastic.co/u/nspatil)
#### Post date: [July 28, 2018, 7:24pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/3 "2018-07-28T19:24:37Z")

</div>

Thanks Christian for responding...as per our internal policy we need to build it from source code rather than downloading.

Meanwhile I tried by running "gradlew build", getting following error, not sure whether i am doing it right way

\< ERROR 0.00s J2 | RejectionActionIT (suite) \<\<\< FAILURES!

> Throwable #1: java.lang.Exception: Suite timeout exceeded (\>= 1200000 msec).  
> at \_\_randomizedtesting.SeedInfo.seed([4BFE8F5B4B5A3D73]:0)  
> Completed [294/300] on J2 in 1209.14s, 1 test, 2 errors \<\<\< FAILURES!

> Task :server:integTest  
> Tests with failures:

- org.elasticsearch.indices.stats.IndexStatsIT.testThrottleStats
- org.elasticsearch.action.RejectionActionIT.testSimulatedSearchRejectionLoad
- org.elasticsearch.action.RejectionActionIT (suite)

Slow Tests Summary:  
1209.14s | org.elasticsearch.action.RejectionActionIT  
404.98s | org.elasticsearch.indices.stats.IndexStatsIT  
309.24s | org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT  
288.17s | org.elasticsearch.search.fetch.subphase.highlight.HighlighterSearchIT  
206.36s | org.elasticsearch.search.query.SearchQueryIT

JUnit4 test failed, ant output was:  
[junit4] says jolly good day! Master seed: 4BFE8F5B4B5A3D73  
[junit4] JVM J1: stderr was not empty, see: C:\ES\elasticsearch-6.3.1\server\build\testrun\integTest\temp\junit4-J1-20180728\_083511\_13613879362498251282678.syserr  
[junit4] JVM J0: 1.87 .. 3017.88 = 3016.01s  
[junit4] JVM J1: 1.87 .. 2934.86 = 2932.99s  
[junit4] JVM J2: 1.87 .. 3553.95 = 3552.07s  
[junit4] Execution time total: 59 minutes 14 seconds  
[junit4] Tests summary: 300 suites, 2216 tests, 1 suite-level error, 1 error, 1 failure, 80 ignored (23 assumptions)

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ':server:integTest'.

> There were test failures: 300 suites, 2216 tests, 1 suite-level error, 1 error, 1 failure, 80 ignored (23 assumptions) [seed: 4BFE8F5B4B5A3D73] /\>

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [July 30, 2018, 5:18pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/4 "2018-07-30T17:18:02Z")

</div>

In order to build a non-snapshot version, you need to pass `-Dbuild.snapshot=false` to the assemble command.

---

<div class="post-metadata">

### Author: ![nspatil](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nspatil](https://discuss.elastic.co/u/nspatil)
#### Post date: [July 31, 2018, 2:32am UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/5 "2018-07-31T02:32:21Z")

</div>

Thanks Ryan, that helped.

But i am facing following error while running non snapshot version, Also please let me know is there any documentation available about various other options apart from -Dbuild.snapshot=false, i want to just build OSS version.

\< Configure project :plugins:repository-hdfs  
hdfsFixture unsupported, please set HADOOP\_HOME and put HADOOP\_HOME\bin in PATH

FAILURE: Build failed with an exception.

- Where:  
Build file 'C:\ES\elasticsearch-6.3.1\x-pack\plugin\core\build.gradle' line: 68

- What went wrong:  
A problem occurred evaluating project ':x-pack:plugin:core'.  
Property license.key must be set for release build /\>

---

<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: [July 31, 2018, 3:28am UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/6 "2018-07-31T03:28:51Z")

</div>

What if you run

```
gradle assemble -Dbuild.snapshot=false

```

Instead?

---

<div class="post-metadata">

### Author: ![nspatil](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nspatil](https://discuss.elastic.co/u/nspatil)
#### Post date: [July 31, 2018, 9:17am UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/7 "2018-07-31T09:17:05Z")

</div>

Hi David, Still getting same error with gradle assemble -Dbuild.snapshot=false

Error:  
"What went wrong:  
A problem occurred evaluating project ':x-pack:plugin:core'.  
Property license.key must be set for release build"

I am using Gradle 4.7, ES 6.3.1, even tried with Gradle 4.9

---

<div class="post-metadata">

### Author: ![nspatil](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@nspatil](https://discuss.elastic.co/u/nspatil)
#### Post date: [July 31, 2018, 5:24pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/8 "2018-07-31T17:24:34Z")

</div>

Thank you all, this issue is resolved

---

<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: [July 31, 2018, 6:31pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/9 "2018-07-31T18:31:17Z")

</div>

For the record (and future readers), you need a signing key to build a non-snapshot version.

---

<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: [August 28, 2018, 6:31pm UTC](https://discuss.elastic.co/t/building-oss-release-version-of-elastic-search-6-3-1/142041/10 "2018-08-28T18:31:22Z")

</div>

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