Re:Exodus: Easily migrate your JVM code from Maven to Bazel
by dikei on Wednesday April 07, 2021 @10:27AM
(#26725446)
People tend to run ```mvn clean verify``` because Maven caching is unreliable, and lead to build failures.
However, Bazel cache is a lot more robust, so you almost never do clean build. The only time I had to perform a clean build was when I accidentally upgraded my C++ compiler and broke the cache.
I see benefits of that in projects that build hours, but in every one of my maven projects (non-hobby) I always do clean before package/verify just to make sure the project builds.
``` mvn clean verify ```
And I'm certain it will work in CI also.