antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Plugin should declare these Maven artifacts in `provided` scope

Open OrangeDog opened this issue 2 years ago • 8 comments
trafficstars

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]

OrangeDog avatar May 11 '23 16:05 OrangeDog

re, how can i fix this issue?

nianien avatar May 17 '23 13:05 nianien

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

ericvergnaud avatar May 17 '23 13:05 ericvergnaud

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 avatar May 18 '23 03:05 jimidle

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: @.***>

jimidle avatar May 24 '23 01:05 jimidle

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]

jdantasl avatar Oct 09 '23 13:10 jdantasl

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

OrangeDog avatar Oct 09 '23 14:10 OrangeDog

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)

msymons avatar Jul 25 '24 12:07 msymons

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: @.***>

jimidle avatar Jul 26 '24 15:07 jimidle