antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
16.93k stars 3.26k forks source link

Plugin should declare these Maven artifacts in `provided` scope #4265

Open OrangeDog opened 1 year ago

OrangeDog commented 1 year ago

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 commented 1 year ago

re, how can i fix this issue?

ericvergnaud commented 1 year ago

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

jimidle commented 1 year ago

If I have time before the weekend, I will look at the maven build. It has become a little out of whack. Given I started it in the first place, I probably should. Tempus fugit

On Wed, May 17, 2023 at 21:48 ericvergnaud @.***> wrote:

IIRC, by adding provided to the dependency

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/4265#issuecomment-1551434430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7TMBPQOXJPC5UBA2LCRTXGTJMFANCNFSM6AAAAAAX6MY5TM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jimidle commented 1 year ago

I have updated the MAven poms and just need to do some thorough testing of some of the changes made. But basically, apart from the one Maven v2 plugin for dot, which we should try to replace, it was just a matter of upgrading dependencies, fixing incorrect poms of our own, and getting rid of ancient plugins that died X years ago. All seems good, and the tests are all passing, but give me a while.

On Thu, May 18, 2023 at 11:45 AM Jim Idle @.***> wrote:

If I have time before the weekend, I will look at the maven build. It has become a little out of whack. Given I started it in the first place, I probably should. Tempus fugit

On Wed, May 17, 2023 at 21:48 ericvergnaud @.***> wrote:

IIRC, by adding provided to the dependency

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/4265#issuecomment-1551434430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7TMBPQOXJPC5UBA2LCRTXGTJMFANCNFSM6AAAAAAX6MY5TM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jdantasl commented 11 months ago

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 commented 11 months ago

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

msymons commented 1 month ago

I still see the WARNING using antlr4-maven-plugin 4.13.1 with Maven 3.9.2

However, there is no warning with Maven 3.9.8 (using -Dmaven.plugin.validation=verbose)

jimidle commented 1 month ago

I have a big update for the plugin and build. But it will not make the next ree e lease unfortunately

On Thu, Jul 25, 2024 at 06:11 Mark Symons @.***> wrote:

I still see the WARNING using antlr4-maven-plugin 4.13.1 with Maven 3.9.2

However, there is no warning with Maven 3.9.8 (using -Dmaven.plugin.validation=verbose)

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/4265#issuecomment-2250175188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7TMA4MBHRNZ2K7FD4V5LZODTQPAVCNFSM6AAAAABLONJHIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJQGE3TKMJYHA . You are receiving this because you commented.Message ID: @.***>