mvn编译:Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce

maven编译spark过程中出现如下问题 

[INFO] Total time: 1.642 s (Wall Clock)
[INFO] Finished at: 2019-11-30T17:28:06+08:00
[INFO] Final Memory: 38M/462M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) on project spark-parent_2.12: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

参考这个https://my.oschina.net/chengxiaoyuan/blog/822994,

修改的是maven版本不是这个插件版本

将spark根目录下pom.xml的maven版本修改为如下(自己安装的maven版本):

mvn编译:Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce_第1张图片

 

去上面报错的那个连接:

http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

进去后:

mvn编译:Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce_第2张图片

 

 

你可能感兴趣的:(大数据)