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 21:12:00 UTC

[jira] [Closed] (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 closed MPLUGIN-452.
-----------------------------------
    Resolution: Fixed

On master: [https://github.com/apache/maven-plugin-tools/commit/623622cda55e837fa3e7c1f94bc4df6ae50ea335]

On maven-plugin-tools-3.7.x: https://github.com/apache/maven-plugin-tools/commit/17aabccca1590f01925db9f63f04a67bd0a4c2f1

> 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.
> Important implication: this also means that m-plugin-p versions currently released and logging at ERROR level are not usable in conjuction with Verifier (when any of two ERRORs are being logged).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)