Unfortunately I had no luck with both of those approaches. The first one runs tests for all dependent modules, while the second one (which I already tried using fails with the provided error). Maybe some ideas how can I run/compiles tests using eclipse compiler from IntelliJ? I need to test lambdas behaviour for FLINK-6783. Any ideas highly appreciated.
Z pozdrowieniami! / Cheers! Dawid Wysakowicz *Data/Software Engineer* Skype: dawid_wys | Twitter: @OneMoreCoder <http://getindata.com/> 2017-06-01 18:33 GMT+02:00 Dawid Wysakowicz <wysakowicz.da...@gmail.com>: > I tried the second approach before and it results in the error with > scala.binary.version I attached, which is the same Ted got. I use it though > for other modules and it works. > > I will try the first approach soon. > > Z pozdrowieniami! / Cheers! > > Dawid Wysakowicz > > *Data/Software Engineer* > > Skype: dawid_wys | Twitter: @OneMoreCoder > > <http://getindata.com/> > > 2017-06-01 18:14 GMT+02:00 Ted Yu <yuzhih...@gmail.com>: > >> That removes the error. >> However, looks like tests from other module(s) are run as well. >> Just an example: >> >> ============================================================ >> ==================== >> 16:12:53,103 INFO >> org.apache.flink.runtime.taskmanager.TaskManagerRegistrationTest - >> ============================================================ >> ==================== >> >> On Thu, Jun 1, 2017 at 9:08 AM, Aljoscha Krettek <aljos...@apache.org> >> wrote: >> >> > Ah, I forgot that you also have to add “-Pjdk8” to activate the Java 8 >> > profile. Otherwise the flink-java8 module will not be referenced in the >> > main pom. >> > >> > > On 1. Jun 2017, at 17:42, Ted Yu <yuzhih...@gmail.com> wrote: >> > > >> > > When using the second approach (install followed by 'mvn verify'), I >> got >> > > the following: >> > > >> > > [ERROR] Failed to execute goal on project flink-java8_2.10: Could not >> > > resolve dependencies for project >> > > org.apache.flink:flink-java8_2.10:jar:1.4-SNAPSHOT: Failed to collect >> > > dependencies at >> > > org.apache.flink:flink-examples-batch_2.10:jar:1.4-SNAPSHOT: Failed >> to >> > read >> > > artifact descriptor for >> > > org.apache.flink:flink-examples-batch_2.10:jar:1.4-SNAPSHOT: Failure >> to >> > > find >> > > org.apache.flink:flink-examples_${scala.binary.version}:pom: >> 1.4-SNAPSHOT >> > in >> > > https://repository.apache.org/snapshots was cached in the local >> > repository, >> > > resolution will not be reattempted until the update interval of >> > > apache.snapshots has elapsed or updates are forced -> [Help 1] >> > > >> > > Looks like ${scala.binary.version} was not substituted for correctly. >> > > >> > > On Thu, Jun 1, 2017 at 8:24 AM, Ted Yu <yuzhih...@gmail.com> wrote: >> > > >> > >> When I used the command given by Aljoscha, I got: >> > >> >> > >> https://pastebin.com/8WTGvdFQ >> > >> >> > >> FYI >> > >> >> > >> On Thu, Jun 1, 2017 at 8:17 AM, Aljoscha Krettek < >> aljos...@apache.org> >> > >> wrote: >> > >> >> > >>> Hi, >> > >>> >> > >>> I think you can use something like >> > >>> >> > >>> mvn verify -am -pl flink-java8 >> > >>> >> > >>> (From the base directory) >> > >>> >> > >>> The -pl flag will tell maven to only do that module while -am tells >> it >> > to >> > >>> also builds its dependencies. This might or might not also run the >> > tests on >> > >>> the dependent-upon projects, I’m not sure. >> > >>> >> > >>> As an alternative you can do “mvn clean install …” (skipping tests >> and >> > >>> everything) and then switch into the flink-java8 directory and run >> “mvn >> > >>> verify” there. >> > >>> >> > >>> Best, >> > >>> Aljoscha >> > >>> >> > >>> >> > >>>> On 1. Jun 2017, at 16:04, Dawid Wysakowicz < >> > wysakowicz.da...@gmail.com> >> > >>> wrote: >> > >>>> >> > >>>> Hi devs! >> > >>>> >> > >>>> Recently I tried running* mvn verify* just for the *flink-java8* >> > module >> > >>> (to >> > >>>> run those tests locally) and it fails with the following error: >> > >>>> >> > >>>> [ERROR] Failed to execute goal on project flink-java8_2.10: Could >> not >> > >>>>> resolve dependencies for project >> > >>>>> org.apache.flink:flink-java8_2.10:jar:1.4-SNAPSHOT: Failed to >> > collect >> > >>>>> dependencies at >> > >>>>> org.apache.flink:flink-examples-batch_2.10:jar:1.4-SNAPSHOT: >> Failed >> > >>> to read >> > >>>>> artifact descriptor for >> > >>>>> org.apache.flink:flink-examples-batch_2.10:jar:1.4-SNAPSHOT: >> Failure >> > >>> to >> > >>>>> find >> > >>>>> org.apache.flink:flink-examples_${scala.binary. >> > version}:pom:1.4-SNAPSHOT >> > >>> in >> > >>>>> https://repository.apache.org/snapshots was cached in the local >> > >>>>> repository, resolution will not be reattempted until the update >> > >>> interval of >> > >>>>> apache.snapshots has elapsed or updates are forced -> [Help 1] >> > >>>>> >> > >>>> >> > >>>> That strategy works for any other module I tried. I would be >> grateful >> > >>> for >> > >>>> any tips how can I run just tests for flink-java8 locally. >> > >>>> >> > >>>> Thanks in advance. >> > >>>> >> > >>>> Z pozdrowieniami! / Cheers! >> > >>>> >> > >>>> Dawid Wysakowicz >> > >>>> >> > >>>> *Data/Software Engineer* >> > >>>> >> > >>>> Skype: dawid_wys | Twitter: @OneMoreCoder >> > >>>> >> > >>>> <http://getindata.com/> >> > >>> >> > >>> >> > >> >> > >> > >> > >