I am building a java project in IntelliJ and using maven to compile the java code .
Following is the error message i get when I execute
mvn clean compile -X
command on the terminal .
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project testpipeline: Fatal error compiling: invalid flag: --module-path -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project testpipeline: `your text`Fatal error compiling
How can this error be fixed ?
I tried editing the settings.xml file to exclude the module-info.java file , but that did not work.