The only way to run examples without annoying parameters setup is to use IntelliJ Idea templates. I guess other IDEs have a similar feature.
I've described it here https://github.com/apache/ignite/tree/ignite-11140/examples#running-examples-on-jdk-91011 If anyone knows how to declare such defaults using maven on IntelliJ settings, please share. ср, 30 янв. 2019 г. в 14:56, Dmitriy Pavlov <dpav...@apache.org>: > I've checked examples from our nightly build from TC. Pom itself was > detected normally, I use IntelliJ Idea Ultimate Edition 2018.2. > > But it can't compile both for Java 8 and for Java 11. > > I created https://issues.apache.org/jira/browse/IGNITE-11140 so I will > come back with fix proposals later. > > вт, 29 янв. 2019 г. в 18:04, Dmitriy Pavlov <dpav...@apache.org>: > >> Hi Denis, >> >> I'm not sure that pom detection is related to Java version or to Ignite. >> I will check examples. >> >> I've checked Apache Ignite TC Bot can be successfully launched using >> instructions in >> https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11 >> using OpenJDK 10.0.2 on Windows 10. The only issue was with JAXB >> dependencies, but it is definitely not related to Apache Ignite. >> >> BTW, thank you for the banner. >> >> Sincerely, >> Dmitriy Pavlov >> >> пн, 28 янв. 2019 г. в 23:30, Denis Magda <dma...@apache.org>: >> >>> Igniters, >>> >>> I played with the latest Oracle JDK 11 on Mac OS Mojave. Results are sad: >>> >>> - Starting a node from cmd (ignite.sh) - FAILED >>> - Opening Ignite examples - BAD EXPERIENCE >>> - pom.xml wasn't detected automatically, had to select it manually >>> - was hard to start the code samples (same issue as with cmd). As a >>> committer, I know how to fix it ( >>> >>> https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11 >>> ), >>> but most of the developers have no glue and will give up >>> - The step above have to be repeated for every single sample >>> >>> We briefly discussed this with some community managers and our fellows >>> will >>> share the fix plan here. >>> >>> In the meantime >>> >>> - Artem agreed to help on the docs side: >>> https://issues.apache.org/jira/browse/IGNITE-11113 >>> - I've added "How to Use Ignite on JDK 9, 10, 11" as a top banner of >>> Ignite website: https://ignite.apache.org/index.html >>> >>> >>> - >>> Denis >>> >>