GithubHelp home page GithubHelp logo

Maven 3.9.2 plugin warnings about ci.maven HOT 14 OPEN

bmarwell avatar bmarwell commented on September 15, 2024
Maven 3.9.2 plugin warnings

from ci.maven.

Comments (14)

cherylking avatar cherylking commented on September 15, 2024 1

fyi...I refreshed the 3.8.3-SNAPSHOT after merging PR #1695.

@cstamas The maven-plugin-plugin is now at 3.9.0 in the latest snapshot.

from ci.maven.

cherylking avatar cherylking commented on September 15, 2024 1

@jwalcorn You would need to use the 3.8.3-SNAPSHOT to have all the latest changes since our June release 3.8.2. We should be putting out a new release in the next couple of weeks. Hopefully it will resolve this issue.

from ci.maven.

bmarwell avatar bmarwell commented on September 15, 2024

Blocked by OpenLiberty/ci.common#404

from ci.maven.

cherylking avatar cherylking commented on September 15, 2024

@bmarwell I created a 3.8.3-SNAPSHOT for you to test with that includes the changes I made in ci.common to remove the maven-artifact dependency. Will that resolve the need for the workaround PR #1692 ?

from ci.maven.

bmarwell avatar bmarwell commented on September 15, 2024

Hey @cherylking, that doesn't quite cut it:

[WARNING]  * io.openliberty.tools:liberty-maven-plugin:3.8.3-SNAPSHOT
[WARNING]   Declared at location(s):
[WARNING]    * invalid.company.project:myapp-integrationtests-openliberty:3.0.3-SNAPSHOT (myapp-integrationtests/openliberty/pom.xml) @ line 182
[WARNING]   Used in module(s):
[WARNING]    * invalid.company.project:myapp-integrationtests-openliberty:3.0.3-SNAPSHOT (myapp-integrationtests/openliberty/pom.xml)
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin mixes multiple Maven versions: [3.6.3, 3.5.0]
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-plugin-api:3.5.0, org.apache.maven:maven-modulel:3.5.0, org.apache.maven:maven-artifact:3.6.3]

You can see these messages by running:

# needs Maven 3.9.2
# add clean/other goals goals/no build cache/profiles as needed
mvn verify -Dmaven.plugin.validation=VERBOSE

from ci.maven.

cherylking avatar cherylking commented on September 15, 2024

@bmarwell Ok, the warnings have changed though. The maven-artifact is no longer included in ci.common. So what accounts for the mix of multiple Maven versions? Where else does provided scope need to get added?

from ci.maven.

cherylking avatar cherylking commented on September 15, 2024

@bmarwell I just ran that command from the plugin project itself (I believe you ran it from a project that is configured to use our plugin instead). It flagged multiple plugins that we are using as a problem.

Problem 1:

[WARNING] Plugin validation issues were detected in 4 plugin(s)
[WARNING] 
[WARNING]  * org.apache.maven.plugins:maven-plugin-plugin:3.6.0
[WARNING]   Declared at location(s):
[WARNING]    * io.openliberty.tools:liberty-maven-plugin:3.8.3-SNAPSHOT (pom.xml) @ line 85
[WARNING]   Used in module(s):
[WARNING]    * io.openliberty.tools:liberty-maven-plugin:3.8.3-SNAPSHOT (pom.xml)
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin depends on the deprecated Maven 2.x compatibility layer, which may not be supported in Maven 4.x
...

Problem 2:

[WARNING]  * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
[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]    * io.openliberty.tools:liberty-maven-plugin:3.8.3-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]

Problem 3:

[WARNING]  * org.codehaus.mojo:animal-sniffer-maven-plugin:1.22
[WARNING]   Declared at location(s):
[WARNING]    * io.openliberty.tools:liberty-maven:3.8.3-SNAPSHOT (/Users/cherylking/gitForks/ci.maven/pom.xml) @ line 66
[WARNING]   Used in module(s):
[WARNING]    * io.openliberty.tools:liberty-maven-plugin:3.8.3-SNAPSHOT (pom.xml)
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin is a Maven 2.x plugin, which will be not supported in Maven 4.x
...

Problem 4:

[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]    * io.openliberty.tools:liberty-maven-plugin:3.8.3-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.
...

I would think those would need to get resolved first? If plugins we are using have issues, then our plugin has those same issues.

from ci.maven.

bmarwell avatar bmarwell commented on September 15, 2024

No, because the plugins you use for compilation are not part of the dependency tree. I will test my workaround next week in the trail to JCon. 😉

from ci.maven.

cstamas avatar cstamas commented on September 15, 2024

Please update your build: maven-plugin-plugin performs checks and emit (build time) these warnings starting with 3.6.2 version, while you use 3.6.0. Still, do NOT update to 3.6.2, rather go and update your plugin to latest, as there are known bugs in 3.6.2, so best to go straight to latest, currently 3.9.0.

We try our best to track these issues on "both ends" (build time and runtime), but if build time plugin versions are lagging, not much we can do...

from ci.maven.

cstamas avatar cstamas commented on September 15, 2024

Here, this one fully gets rid of any warning (this build and downstream builds using this plugin) #1697

from ci.maven.

cstamas avatar cstamas commented on September 15, 2024

And related #1698

from ci.maven.

jwalcorn avatar jwalcorn commented on September 15, 2024

FWIW, I'm seeing this too. A normal "mvn package" gives me this:

image

If I do a "mvn -D maven.plugin.validation=VERBOSE package", I see this:

image

I tried explicitly adding such plugin dependencies to my dependency list, but that didn't make the big yellow WARNING go away. So I'm following the guidance from the Maven output to "please notify plugin maintainers about reported issues".

from ci.maven.

jwalcorn avatar jwalcorn commented on September 15, 2024

Note my pom is here: https://github.com/IBMStockTrader/trader/blob/master/pom.xml

from ci.maven.

cherylking avatar cherylking commented on September 15, 2024

We recently released version 3.10. I would love any feedback on whether all the warnings have been resolved at this point.

@bmarwell @jwalcorn @cstamas

from ci.maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.