0

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.

samabcde
  • 6,988
  • 2
  • 25
  • 41
  • Does this answer your question? [fatal error compiling invalid flag --module-path](https://stackoverflow.com/questions/46118716/fatal-error-compiling-invalid-flag-module-path) – samabcde Feb 02 '23 at 14:24

0 Answers0