You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/01/12 16:01:00 UTC

[jira] [Assigned] (MPLUGIN-452) Maven scope warning should be logged at WARN level

     [ https://issues.apache.org/jira/browse/MPLUGIN-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak reassigned MPLUGIN-452:
---------------------------------------

    Assignee: Tamas Cservenak

> 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
>
> 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)