# Failed to Build OSS only Dremio Using Maven

**URL:** <https://community.dremio.com/t/failed-to-build-oss-only-dremio-using-maven/6335>\
**Category:** Uncategorized\
**Created:** [September 24, 2020, 4:29am UTC](https://community.dremio.com/t/failed-to-build-oss-only-dremio-using-maven/6335 "2020-09-24T04:29:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahadh4ilyas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/fahadh4ilyas/32/2826_2.png) [@fahadh4ilyas](https://community.dremio.com/u/fahadh4ilyas)\
**Post date:** [September 24, 2020, 4:29am UTC](https://community.dremio.com/t/failed-to-build-oss-only-dremio-using-maven/6335/1 "2020-09-24T04:29:51Z")

</div>

After clone github repo of dremio-oss, I tried to build dremio-oss with flag `-Ddremio.oss-only=true`. But the build `FAILURE` when installing `Sabot - Kernel` with this error:

```auto
[ERROR] Failed to execute goal on project dremio-sabot-kernel: Could not resolve dependencies for project com.dremio.sabot:dremio-sabot-kernel:jar:4.8.0-202009180238090394-b0a98b73: Failure to find com.dremio.data:dremio-tpch-sample-data:jar:1.0.0 in https://maven.dremio.com/public/ was cached in the local repository, resolution will not be reattempted until the update interval of dremio-public has elapsed or updates are forced -> [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/DependencyResolutionException

```

---

<div class="post-metadata">

**Author:** ![svenka](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/svenka/32/1859_2.png) [@svenka](https://community.dremio.com/u/svenka)\
**Post date:** [October 7, 2020, 5:19pm UTC](https://community.dremio.com/t/failed-to-build-oss-only-dremio-using-maven/6335/2 "2020-10-07T17:19:44Z")

</div>

Hi there, have you had any luck building it without the -Ddremio.oss-only=true flag? I also see this post which seems to be similar to your situation:

> [@Dremio-oss build error](https://community.dremio.com/t/dremio-oss-build-error/6025/7):
>
> If I understand correctly, free repo contains artifacts without open source code, and by the way it is used when -Ddremio.oss-only=false
