Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin

后端 未结 12 1327
感情败类
感情败类 2021-02-04 06:49

I got a maven spring project but when I try to run it, I can\'t... some idea about it...
The next is the Error Message:

BUILD FAILURE
-----------------------         


        
12条回答
  •  孤城傲影
    2021-02-04 07:19

    I had this problem because Java (java) was version 8 and the Java compiler (javac) was version 11.

    This is typical for Windows users, if you need to switch between versions manually.

    Please check the versions first:

    java -version
    javac -version
    

    If an IDE is used, for example an IntelliJ Idea, then I will advise to carefully study the project settings as well. Perhaps it makes sense to completely delete the files generated by the IDE and import the project again.

提交回复
热议问题