No plugin found for prefix ‘compile‘ in the current project

在编译flink的scala工程的时候,编译命令如下:

mvn scala compile:compile package

完整报错信息如下:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.625 s
[INFO] Finished at: 2020-09-30T00:27:31+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'compile' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/appleyuchi/bigdata/apache-maven-3.6.3/jar_warehouse), alimaven (http://maven.aliyun.com/nexus/content/groups/public/)] -> [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/NoPluginFoundForPrefixException

进入调试模式
mvn scala compile:compile package -X

mvn help:system检查文件是否ok

最后发现是编译命令写错了,如下:

mvn clean scala:compile compile package

猜你喜欢

转载自blog.csdn.net/appleyuchi/article/details/108878376