Maven 插件依赖范围错误 - org.apache.maven:maven-artifact 依赖范围应为 provided
[INFO] --- maven-plugin-plugin:3.6.2:descriptor (default-descriptor) @ dremio-protostuff-maven-plugin --- [ERROR]
Maven dependencies of Maven Plugins should be in 'provided' scope.
Please make sure that all your dependencies declared in POM whose group ID is
org.apache.maven have set '
The following dependencies are in wrong scope:
- org.apache.maven:maven-artifact:jar:3.2.3:compile
Please fix your build!
[INFO] Using 'UTF-8' encoding to read mojo source files. [INFO] java-javadoc mojo extractor found 0 mojo descriptor. [INFO] bsh mojo extractor found 0 mojo descriptor. [INFO] ant mojo extractor found 0 mojo descriptor. [WARNING] Deprecated @Component annotation for 'execution' field in com.dremio.protostuff.mojo.ProtoCompilerMojo: replace with @Parameter( defaultValue = "${mojoExecution}", readonly = true ) [INFO] java-annotations mojo extractor found 1 mojo descriptor. [INFO] [INFO] --- maven-plugin-plugin:3.6.2:helpmojo (help-descriptor) @ dremio-protostuff-maven-plugin --- [ERROR]
Maven dependencies of Maven Plugins should be in 'provided' scope.
Please make sure that all your dependencies declared in POM whose group ID is
org.apache.maven have set '
The following dependencies are in wrong scope:
- org.apache.maven:maven-artifact:jar:3.2.3:compile
Please fix your build!
这是一个 Maven 构建过程中的错误信息。该错误指出 Maven 插件的依赖应该使用 'provided' 范围。需要确保在 POM 文件中的所有依赖项的 group ID 为 org.apache.maven 的都设置了 '
原文地址: https://www.cveoy.top/t/topic/qDl4 著作权归作者所有。请勿转载和采集!