[ https://issues.apache.org/jira/browse/MNG-7811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17735382#comment-17735382 ]
ASF GitHub Bot commented on MNG-7811: ------------------------------------- slawekjaranowski commented on code in PR #429: URL: https://github.com/apache/maven-site/pull/429#discussion_r1235561824 ########## content/markdown/plugin-validation.md: ########## @@ -0,0 +1,73 @@ +# Plugin Validation + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +Maven since versions 3.9.x and 4.x introduced `Plugin Validation` +in order to help Maven users and Maven Plugin developers maintain theirs projects. + +## Internal Plugins Validation issues + +Internal Plugins Validation issues (project local) are issues discovered in Maven project configuration, like: + + - using deprecated plugins goals + - using deprecated plugins parameters + - using read only plugins parameters + +In such cases users can fix their project by fixing configuration by editing their POMs. +Users should consult actual plugin documentation or try to update plugin to newer version. + +## External Plugins Validation issues + +`External Plugins Validation issues (non-configuration) are issues detected in plugin itself, like: + + - using old, deprecated Maven Api by plugin + - declaring dependencies for Maven Core artifacts in wrong scope in plugin project Review Comment: We can take care about list of validation in next step Jirra and PR are not needed I think > Plugins verification - reports are inconsistent > ----------------------------------------------- > > Key: MNG-7811 > URL: https://issues.apache.org/jira/browse/MNG-7811 > Project: Maven > Issue Type: Bug > Components: Plugins and Lifecycle > Reporter: Slawomir Jaranowski > Assignee: Slawomir Jaranowski > Priority: Major > Fix For: 3.9.3, 4.0.0-alpha-6, 4.0.0 > > > We have report modes: > {noformat} > - NONE, // mute validation completely (validation issue collection still > happens, it is just not reported!) > - INLINE, // inline, each "internal" problem one line next to mojo invocation > - SUMMARY, // at end, list of plugin GAVs along with "internal" issues > - BRIEF, // synonym to SUMMARY > - VERBOSE // at end, list of plugin GAVs along with detailed report of ANY > validation issues > {noformat} > *NONE* > - is ok works as expected, as documented > *INLINE* > - is ok works as expected, as documented > *SUMMARY*, *BRIEF* > - are the same - *{color:#ff0000}bug{color}* > - prints *internal* issues in *VERBOSE* mode - *{color:#ff0000}bug{color}* > *VERBOSE* > - is ok works as expected, as documented > So we don't have possibility to report an external issues in brief mode - as > a list at the end, also - *{color:#ff0000}bug{color}* > h1. Proposition > - *SUMMARY* - prints *internal* and *external* issues as list at the end > - *BRIEF* - prints *internal* issues in *INLINE* and *external* as list at > the end > - prepare documentation on Maven site with explanation of common issues and > what user can do with it -- This message was sent by Atlassian Jira (v8.20.10#820010)