为什么:
./mvnw -X versions:set -DnewVersion=${VERSION_TO_DEPLOY}给出这个错误:
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\tools\mvnrepo), nexus (https://nexus.corporate.net/repository/maven-public/)]Maven指向error documentation
但这也没有多大帮助。
发布于 2020-02-07 01:51:02
在一些跟踪的帮助下(在mvnw中设置-x ),mvnw似乎在我们的构建服务器上使用了环境变量$MAVEN_CONFIG,该变量碰巧也被其他软件用于不同的目的。
多亏了this bug report,它开始有意义了
如果这碰巧指向本地Windows文件(前面没有-config ),maven将尝试将其解析为插件:
C:\tools\apache-maven-2.2.1\conf\settings.xml
https://stackoverflow.com/questions/60100884
复制相似问题