Howdy,

regarding plugin validation we have this documentation
https://maven.apache.org/guides/plugins/validation/index.html

that tries to explain what's and why's (given naming is constantly brought
up, let me tell in advance, the output uses "currently built project POV",
so internal issue is something one can fix by editing POM, while external
issue depends on external plugin, that needs fix and new release).

As it stands on page, the `maven,plugin.validation` property is "maven user
property" (set with -D on cli) and is not "Maven project property", hence
setting it in POM/properties does not make sense (nor has it's effect).
This should be done in `.mvn/maven.config` instead, if you want it always
ON.

On the other hand, as we talk about properties, I'd like to remind you
about other change ongoing in 3.9.x line, that is the cleanup of property
notion: in Maven (and Java) land, we deal with:
- Java System Properties
- Maven System Properties
- Maven User Properties
- Maven Project Properties

In release notes "Breaking changes" there is last bullet that gives some
hint about these:
https://maven.apache.org/docs/3.9.5/release-notes.html#potentially-breaking-core-changes-if-migrating-from-3-8-x

HTH
Tamas

On Sat, Oct 7, 2023 at 11:57 PM Eric Kolotyluk <eric.koloty...@gmail.com>
wrote:

> When I run
>
>     |mvn clean site -Dmaven.plugin.validation=VERBOSE|
>
> I get verbose output, but when I put the following in my pom.xml
>
>        <properties>
>     <maven.plugin.validation>VERBOSE</maven.plugin.validation>
>        </properties>
>
> and run
>
>     |mvn clean site|
>
>   I do not. Instead, I just get
>
>     [WARNING]
>     [WARNING] Plugin validation issues were detected in 3 plugin(s)
>     [WARNING]
>     [WARNING]  * org.apache.maven.plugins:maven-site-plugin:4.0.0-M8
>     [WARNING]  *
> org.apache.maven.plugins:maven-surefire-report-plugin:3.1.2
>     [WARNING]  *
>     org.apache.maven.plugins:maven-project-info-reports-plugin:3.4.5
>     [WARNING]
>     [WARNING] For more or less details, use 'maven.plugin.validation'
>     property with one of the values (case insensitive): [BRIEF, DEFAULT,
>     VERBOSE]
>     [WARNING]
>
> Can someone please help me understand what is going on here?
>
> Here is some context...
>
>     $ mvn -version
>     Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
>     Maven home: C:\Program Files (Open)\Apache\apache-maven-3.9.5
>     Java version: 21, vendor: Oracle Corporation, runtime: C:\Program
>     Files\java\jdk-21
>     Default locale: en_CA, platform encoding: UTF-8
>     OS name: "windows 10", version: "10.0", arch: "amd64", family:
>     "windows"
>
> Cheers, Eric
>

Reply via email to