Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing repo to enable building with -Ddremio.oss-only=true #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pvallone
Copy link

@pvallone pvallone commented Jun 16, 2022

The README mentions here that Dremio can be built with only OSS dependencies by specifying the -Ddremio.oss-only=true flag. Currently, this fails with the error below because com.dremio.data:dremio-tpch-sample-data can't be pulled from the dremio-public repo. This PR makes the dremio-free repo accessible to the build. It seems like an alternative (and perhaps preferable) solution would be to add com.dremio.data:dremio-tpch-sample-data to the dremio-public repo, but I'm guessing only the Dremio team has the ability to add things to that repo.

Without this change, the build fails with the error below when running this command: mvn clean install -DskipTests -Ddremio.oss-only=true

[ERROR] Failed to execute goal on project dremio-sabot-kernel: Could not resolve dependencies for project com.dremio.sabot:dremio-sabot-kernel:jar:21.2.0-202205262146080444-038d6d1b: Could not find artifact com.dremio.data:dremio-tpch-sample-data:jar:1.0.0 in dremio-public (https://maven.dremio.com/public/) -> [Help 1]

There are several issues open about this build failure. Here's one such example.

@pvallone
Copy link
Author

I did notice this bit of code from this part of pom.xml. That suggests that the dremio-free repo is not meant to be included when the dremio.oss-only flag is set. This suggests it would be preferable to fix the build by adding com.dremio.data:dremio-tpch-sample-data to dremio-public.

      <id>community-build</id>
      <activation>
        <property>
          <name>dremio.oss-only</name>
          <value>!true</value>
        </property>
      </activation>
      <repositories>
        <repository>
          <id>dremio-free</id>
          <url>https://maven.dremio.com/free/</url>
        </repository>
      </repositories>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant