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

Tamas Cservenak updated MPLUGIN-452:
------------------------------------
    Description: 
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).

  was:
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.


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

Reply via email to