在用maven执行exec命令是出现以下报错
[ERROR] No plugin found for prefix 'exec' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehau
s.mojo] available from the repositories [local (D:\Program Files\maven-repository), alimaven (http://maven.aliyun.com/nexus/cont
ent/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
网上找到的方法大多说把镜像的url改为阿里云的,但是我改了镜像也没有解决,还是要同样的报错。
最终解决方法
把settings.xml
里的本地仓库设置注释掉就可以了,但是原因不明。。。
<!-- <localRepository>D:\Program Files\maven-repository</localRepository> -->