Hi,
one more question regarding Idea - how to build sources from folders other than src/main/java, for example src/main/spark? These folders were not added as source directories upon project opening. And when I add it manually there are no appropriate dependencies in examples/pom.xml (and in its' parents) anyway.
 
09.09.2021, 16:38, "Pavel Tupitsyn" <ptupit...@apache.org>:
Hi, 
 
This happens - Idea picks up compiler options from the 9+ profile and sticks with them
- Nuke everything (git clean -fdx), build with Maven, open Idea, uncheck java-9+ profile, Reload Maven Projects
- Still does not work? Open Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler, and clean up "override compiler parameters per-module"
 
On Thu, Sep 9, 2021 at 4:29 PM Антон <anton...@yandex.ru> wrote:
Hi. I'm having trouble running examples in Idea with Java 1.8. I've built project succesfully using maven, but when I'm trying to Run or Debug some file in Idea it shows error message saying about invalid flag "--add-exports", but I didn't add this flag. I even deleted profile "9+" from pom.xml of parent project (which contains such flag) but it didn't help. Please suggest some way to fix this.
 
Full log:
Executing pre-compile tasks...
Loading Ant configuration...
Running Ant tasks...
Running 'before' tasks
Checking sources
Copying resources... [ignite-examples]
Parsing java... [ignite-examples]
java: invalid flag: --add-exports
java: Errors occurred while compiling module 'ignite-examples'
Checking dependencies... [ignite-examples]
Dependency analysis found 0 affected files
javac 1.8.0_201 was used to compile java sources
Finished, saving caches...
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Loading Ant configuration...
Running Ant tasks...
Synchronizing output directories...
09.09.2021 16:17 - Build completed with 1 error and 0 warnings in 3 sec, 66 ms

Reply via email to