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 should declare these Maven artifacts in provided scope #4265

Open
OrangeDog opened this issue May 11, 2023 · 6 comments
Open

Plugin should declare these Maven artifacts in provided scope #4265

OrangeDog opened this issue May 11, 2023 · 6 comments

Comments

@OrangeDog
Copy link

Reported by Maven 3.9,2:

[WARNING]  * org.antlr:antlr4-maven-plugin:4.12.0
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-artifact:3.8.5, org.apache.maven:maven-repository-metadata:3.8.5, org.apache.maven:maven-settings-builder:3.8.5, org.apache.maven:maven-resolver-provider:3.8.5, org.apache.maven:maven-model-builder:3.8.5, org.apache.maven:maven-core:3.8.5, org.apache.maven:maven-plugin-api:3.8.5, org.apache.maven:maven-model:3.8.5, org.apache.maven:maven-builder-support:3.8.5, org.apache.maven:maven-settings:3.8.5]
@nianien
Copy link

nianien commented May 17, 2023

re, how can i fix this issue?

@ericvergnaud
Copy link
Contributor

ericvergnaud commented May 17, 2023

IIRC, by adding <scope>provided</scope> to the dependency

@jimidle
Copy link
Collaborator

jimidle commented May 18, 2023 via email

@jimidle
Copy link
Collaborator

jimidle commented May 24, 2023 via email

@jdantasl
Copy link

jdantasl commented Oct 9, 2023

Hello my friends.
I don't knowing how to fix this:
I don't knowing how to build this structure of
<build><plugins>.. </plugins></build>
on the pom.xml containing the scopes.

[WARNING]
[WARNING] Plugin validation issues were detected in 3 plugin(s)
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
[WARNING] Declared at location(s):
[WARNING] * br.com.livelo.oms:oms-marketplace-camunda8-test:1.0.0-SNAPSHOT (pom.xml) @ line 119
[WARNING] Used in module(s):
[WARNING] * br.com.livelo.oms:oms-marketplace-camunda8-test:1.0.0-SNAPSHOT (pom.xml)
[WARNING] Plugin issue(s):
[WARNING] * Plugin should declare these Maven artifacts in provided scope: [org.apache.maven:maven-plugin-api:3.2.5, org.apache.maven:maven-model:3.2.5, org.apache.maven:maven-core:3.2.5, org.apache.maven:maven-settings:3.2.5, org.apache.maven:maven-model-builder:3.2.5, org.apache.maven:maven-repository-metadata:3.2.5, org.apache.maven:maven-aether-provider:3.2.5, org.apache.maven:maven-settings-builder:3.2.5, org.apache.maven:maven-artifact:3.2.5]
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7
[WARNING] Declared at location(s):
[WARNING] * br.com.livelo.oms:oms-marketplace-camunda8-test:1.0.0-SNAPSHOT (pom.xml) @ line 110
[WARNING] Used in module(s):
[WARNING] * br.com.livelo.oms:oms-marketplace-camunda8-test:1.0.0-SNAPSHOT (pom.xml)
[WARNING] Mojo issue(s):
[WARNING] * Mojo surefire:test (org.apache.maven.plugin.surefire.SurefirePlugin)
[WARNING] - Parameter 'localRepository' uses deprecated parameter expression '${localRepository}': ArtifactRepository type is deprecated and its use in Mojos should be avoided.
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.3.0
[WARNING] Declared at location(s):
[WARNING] * org.apache.maven:maven-core:3.9.2:default-lifecycle-bindings @ line -1
[WARNING] Used in module(s):
[WARNING] * br.com.livelo.oms:oms-marketplace-camunda8-test:1.0.0-SNAPSHOT (pom.xml)
[WARNING] Mojo issue(s):
[WARNING] * Mojo resources:resources (org.apache.maven.plugins.resources.ResourcesMojo)
[WARNING] - Implements Contextualizable interface from Plexus Container, which is EOL.
[WARNING] * Mojo resources:testResources (org.apache.maven.plugins.resources.TestResourcesMojo)
[WARNING] - Implements Contextualizable interface from Plexus Container, which is EOL.
[WARNING]
[WARNING]
[WARNING] Fix reported issues by adjusting plugin configuration or by upgrading above listed plugins. If no upgrade available, please notify plugin maintainers about reported issues.
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]

@OrangeDog
Copy link
Author

@jdantasl that has nothing to do with antlr. Update your plugins.

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

5 participants