首页 » 编程笔记 » java » 正文

Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message

java 项目在执行 mvn eclipse:eclipse  的时候出现

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:

** There are some banned dependencies.

                                        ** For more information:

                                       

Found Banned Dependency: org.mortbay.jetty:servlet-api-xx:jar:xx

Use ‘mvn dependency:tree’ to locate the source of the banned dependencies.

意思是触犯了mvn设置的禁止依赖的包,如:org.mortbay.jetty:servlet-api-xx:jar:xx

根据依赖树找到之后 排除掉 问题解决