I was running into similarish problems. I’m not sure if I’m breaking something by building in terminal and IntelliJ. After a while the check task fails for sdks/java being unable to resolve jar dependencies.
There were a bunch of artefacts this happened with like Avro-x.y.z-test and a shaded Cassandra core. It fails saying the artefact can’t be found in maven repos nor the local .m2 repository cache. I haven’t figured out a reproducible test case as to how it gets into this state. It seems to either imply a dependency relationship is missing and the build DAG isn’t able to order the build targets correctly, or I have a unique snowflake setup, or being new to gradle I’m missing a trick that’s obvious to a gradle veteran. The most consistent way I’ve figured to recover from the situation is move the .m2/repository out of the way, create a new empty directory, and rebuild. On Wed, May 20, 2020 at 11:22, Omar Ismail <[email protected]> wrote: > Hey Jacek, > > What I usually do is `git clone REPO` in a new folder, and then in the > Intellij main menu I press "Open", navigate to that folder, then press > "Open". Gradle then automatically starts doing the build. > > Hope this helps! > C > Best, > Omar > > On Wed, May 20, 2020 at 10:06 AM Jacek Laskowski <[email protected]> wrote: > >> Hi, >> >> I've been trying to import the Beam sources to IntelliJ IDEA for some >> time now and must admit I'm very surprised how painful it is. >> >> I tried the steps described in >> https://cwiki.apache.org/confluence/display/BEAM/Set+up+IntelliJ+from+scratch, >> but the wizards give me different options (perhaps I'm on a newer IDEA or >> could it be attributed to macOS?) >> >> Import is successful, but the modules don't seem to have dependencies >> specified and SparkRunner has all org.apache.beam.sdk. imports unresolved >> (Cannot resolve the symbol 'XXX'). >> >> I'm sure I'm missing something obvious and simple, but seems it's too >> obvious and too simple for me today :( Thanks for any hints. >> >> Pozdrawiam, >> Jacek Laskowski >> ---- >> https://about.me/JacekLaskowski >> "The Internals Of" Online Books <https://books.japila.pl/> >> Follow me on https://twitter.com/jaceklaskowski >> >> <https://twitter.com/jaceklaskowski> >> > > > -- > > Omar Ismail | Technical Solutions Engineer | [email protected] | > -- Nathan Fisher w: http://junctionbox.ca/
