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

后端 未结 12 1326
感情败类
感情败类 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:15

    You should solve the root cause of the issue, conflict between some of your dependecies, mvn/java version, there is a lot os possible reasons.

    But this is a workaround to build ignoring the error

    To skip enforcer (not always working)

    mvn clean install -Denforcer.skip=true
    

    To continue the build if error

    mvn clean install -Denforcer.fail=false
    

提交回复
热议问题