Hi team, anyone have came across similar error whi...
# dev
s
Hi team, anyone have came across similar error while building ? https://github.com/apache/druid/issues/17375
Do we have any quicker way to run the build ? mvn clean install takes forever for me https://druid.apache.org/docs/latest/development/build#building-from-source
a
Do you need the
rat
profile? If you’re building the project only for development,
-Pdist
should suffice for the most part. Idk if you need to skip
Dgpg.skip -Ddependency-check.skip=true
. I usually exclude a few static analysis checks to speed up the build with the
dist
profile:
mvn clean install -Pdist
DskipTests -Dforbiddenapis.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true -Dmaven.javadoc.skip=true -Denforcer.skip=true
s
Thanks! I will try that.
For me the command is still running since 3 min. Please let me know if it is usual.
a
Ah yeah, one more mvn option you could use is
-T1C
to the 👆 command, which will use multi-threads to build whenever possible. With that option, the full build usually takes ~6m on my M1 mac.
Did you get past the errors you were originally seeing tho?
s
Thanks, the build took sometime but completed.
👍 1