Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Validation Issue on Maven 3.9.2 #1085

Closed
henderea opened this issue May 15, 2023 · 5 comments
Closed

Plugin Validation Issue on Maven 3.9.2 #1085

henderea opened this issue May 15, 2023 · 5 comments

Comments

@henderea
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
With the latest maven 3.9.2, I see a plugin validation issue:

[WARNING]  * com.github.eirslett:frontend-maven-plugin:1.12.1
...
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-plugin-api:3.6.0, org.apache.maven:maven-model:3.6.0, org.apache.maven:maven-artifact:3.6.0]

If the current behavior is a bug, please provide the steps to reproduce.
Run a maven build with -Dmaven.plugin.validation=verbose to see the full details, though you'll get a basic notice with any maven build on maven 3.9.2.

What is the expected behavior?
No warning.

Please mention your frontend-maven-plugin and operating system version.
frontend-maven-plugin: 1.12.1 (as seen in maven build output above)
OS: macOS 12.6.5
Maven: 3.9.2
Java: 11.0.16

@xak2000
Copy link

xak2000 commented May 23, 2023

As a note to why this is happening, see Maven 3.9.2 Release Notes - the part about "Plugin validation warnings change".

Basically, they are preparing to upcoming Maven 4, so these warnings should be fixed to make plugin compatible with Maven 4.

@eirslett
Copy link
Owner

I think this should be fixed with the latest 1.13.1 release.

@xak2000
Copy link

xak2000 commented Jun 25, 2023

@eirslett I tried 1.13.1 and warnings are not completely gone.

[WARNING]
[WARNING] Plugin validation issues were detected in 1 plugin(s)
[WARNING]
[WARNING]  * com.github.eirslett:frontend-maven-plugin:1.13.1
...
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-artifact:3.6.0]

You can check it yourself by running:

mvnw compile -Dmaven.plugin.validation=VERBOSE

on any project, that uses Maven Wrapper 3.9.2 and frontend-maven-plugin 1.13.1.

@eirslett
Copy link
Owner

oh :-( how about 1.13.2?

@xak2000
Copy link

xak2000 commented Jun 25, 2023

Tried 1.13.2 - works without warnings! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants