Comments (14)
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.
@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.
Blocked by OpenLiberty/ci.common#404
from ci.maven.
@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.
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.
@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.
@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.
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.
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.
Here, this one fully gets rid of any warning (this build and downstream builds using this plugin) #1697
from ci.maven.
And related #1698
from ci.maven.
FWIW, I'm seeing this too. A normal "mvn package" gives me this:
If I do a "mvn -D maven.plugin.validation=VERBOSE package", I see this:
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.
Note my pom is here: https://github.com/IBMStockTrader/trader/blob/master/pom.xml
from ci.maven.
We recently released version 3.10
. I would love any feedback on whether all the warnings have been resolved at this point.
from ci.maven.
Related Issues (20)
- Java 21 support HOT 3
- Determine if all calls to `executeMojo` should use a cloned MavenSession
- 3.9 Version does not wortk with Maven < 3.8.6 HOT 2
- LMP 3.9 devc mode -DdockerRunOpts does not work HOT 5
- LMP 3.9 devc mode does not pick up the pom.xml change HOT 9
- mvn liberty:dev gives [INFO] [ERROR ] CWWKZ0013E: It is not possible to start two applications called ... HOT 3
- SVT: Plugin validation issue warning message printed for a plugin not specified in pom.xml HOT 8
- SVT:Cannot start application in container due pt write too long error HOT 10
- SVT: Start in container fails with multimodules HOT 5
- Issues with copyDependencies of artifact built within multi-module reactor build HOT 12
- SVT: Application keeps on restarting in Dev mode without making any changes to the app HOT 9
- Maven properties are not being replaced by their values when prepare-feature reads a bill of materials
- Add support for Maven property references in `copyDependencies`
- Add automated test for Podman support
- In multi-module dev mode, the DevUtil compile fails for a sub-module although compile mojo compilation suceeds.
- Duplicate jvm.options entries generated from a single -Dliberty.jvm.xyz=123 system property in v3.10 HOT 3
- Confusing when user provides app config but plugin generates one anyway because of location mismatch HOT 2
- liberty-maven-plugin should rely on the build toolchain configuration to build / rebuild code HOT 3
- Maven plugin prints extraneous warnings HOT 2
- Unable to measure code coverage after migrating to 3.10 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ci.maven.