Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10

执行报错

Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10_第1张图片

异常关键提示信息

[ERROR] Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10 (D:\repository\org\apache\maven\maven-plugin-api\4.0.0-alpha-10\maven-plugin-api-4.0.0-alpha-10.jar): No plugin descriptor found at META-INF/maven/plugin.xml -> [Help 1]

Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10_第2张图片
依赖明明是 3.0 ,但是非要找 4.0.0-alpha-10,很奇怪

<dependency>
    <groupId>org.apache.mavengroupId>
    <artifactId>maven-plugin-apiartifactId>
    <version>3.0version>
dependency>

重新新建个maven项目就好用

Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10_第3张图片

发现是眼睛瞎了 执行错命令了

错误命令 mvn -X org.apache.maven:maven-plugin-api:sayhi
正确命令 mvn -X org.example:test-maven-plugin:sayhi

Failed to parse plugin descriptor for org.apache.maven:maven-plugin-api:4.0.0-alpha-10_第4张图片

你可能感兴趣的:(工具,常见问题,apache,maven,java)