[ https://issues.apache.org/jira/browse/MPLUGIN-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17676245#comment-17676245 ]
ASF GitHub Bot commented on MPLUGIN-452: ---------------------------------------- cstamas opened a new pull request, #190: URL: https://github.com/apache/maven-plugin-tools/pull/190 Should be logged at WARN level, and not ERROR level. When Mojo logs ERROR, it is expected that it fails the build. And this also confuses the Verifier. --- https://issues.apache.org/jira/browse/MPLUGIN-452 > Maven scope warning should be logged at WARN level > -------------------------------------------------- > > Key: MPLUGIN-452 > URL: https://issues.apache.org/jira/browse/MPLUGIN-452 > Project: Maven Plugin Tools > Issue Type: Bug > Components: Plugin Plugin > Reporter: Tamas Cservenak > Assignee: Tamas Cservenak > Priority: Major > Fix For: 3.7.1 > > > Currently the plugin emits ERROR like this (from ITs): > {noformat} > [INFO] --- plugin:3.7.0:descriptor (default-descriptor) @ plugin-extension --- > [ERROR] > Some dependencies of Maven Plugins are expected to be in provided scope. > Please make sure that dependencies listed below declared in POM > have set '<scope>provided</scope>' as well. > The following dependencies are in wrong scope: > * org.apache.maven:maven-model:jar:3.8.6:compile > * org.apache.maven:maven-artifact:jar:3.8.6:compile > * org.apache.maven:maven-resolver-provider:jar:3.8.6:compile > * org.apache.maven:maven-model-builder:jar:3.8.6:compile > * org.apache.maven:maven-builder-support:jar:3.8.6:compile > * org.apache.maven:maven-repository-metadata:jar:3.8.6:compile > [INFO] Using 'UTF-8' encoding to read mojo source files. > [INFO] java-annotations mojo extractor found 0 mojo descriptor. > [INFO] java-javadoc mojo extractor found 1 mojo descriptor. > [WARNING] > [WARNING] Deprecated extractor java-javadoc extracted 1 descriptor. Upgrade > your Mojo definitions. > [WARNING] You should use Mojo Annotations instead of Javadoc tags. > [WARNING] > [INFO] ant mojo extractor found 0 mojo descriptor. > [INFO] bsh mojo extractor found 0 mojo descriptor. {noformat} > The log level should be WARN instead as we do not fail the build. > This output confuses Verifier and considers build failed even if it is not. -- This message was sent by Atlassian Jira (v8.20.10#820010)