jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Some dependencies of Maven Plugins are expected to be in provided scope

Open tcurdt opened this issue 1 year ago • 3 comments

Building gives this error - that does not break the build:

Some dependencies of Maven Plugins are expected to be in provided scope.
Please make sure that dependencies listed below declared in POM
have set '<scope>provided</scope>' as well.

The following dependencies are in wrong scope:
 * org.apache.maven:maven-core:jar:3.6.0:compile
 * org.apache.maven:maven-model:jar:3.6.0:compile
 * org.apache.maven:maven-settings:jar:3.6.0:compile
 * org.apache.maven:maven-settings-builder:jar:3.6.0:compile
 * org.apache.maven:maven-builder-support:jar:3.6.0:compile
 * org.apache.maven:maven-repository-metadata:jar:3.6.0:compile
 * org.apache.maven:maven-artifact:jar:3.6.0:compile
 * org.apache.maven:maven-model-builder:jar:3.6.0:compile
 * org.apache.maven:maven-resolver-provider:jar:3.6.0:compile
 * org.apache.maven:maven-plugin-api:jar:3.6.0:compile

putting the deps into the requested scope does break the build though.

tcurdt avatar Aug 08 '22 21:08 tcurdt

changing this from compile to provided breaks the integration tests

tcurdt avatar Feb 01 '23 23:02 tcurdt

I'm getting exactly the same above error while building my code after updating my maven-plugin-plugin to the version 3.7.0. But I don't have all the dependencies mentioned there in my pom.xml. I've only maven-plugin-api in my pom.xml. Can you please help me out to resolve this error. thanks in advance

VineelaKantamneni avatar Apr 03 '23 07:04 VineelaKantamneni

@VineelaKantamneni if I new how to resolve this the ticket would be closed ;)

tcurdt avatar Apr 03 '23 11:04 tcurdt

we did some upgrades and this seems to be solved now.

tcurdt avatar Mar 02 '24 14:03 tcurdt