Yes, that's it. So, here it is https://gist.github.com/cstamas/e9449f2a295132767027bfb85288f0ca
Problem is https://github.com/jochenw/jwi-maven-plugins/blob/706a7aed52320fceb3ff096c83c19021c66f2d0b/jwigrv-maven-plugin/pom.xml#L64-L68 T On Thu, Dec 5, 2024 at 8:11 PM Jochen Wiedmann <jochen.wiedm...@gmail.com> wrote: > > Hi, Tamas, > > is that what you are asking for? > > Jochen > > > wi@laptop-jochen-hplx:~/git/github.com/jochenw/jwi-maven-plugins/jwigrv-maven-plugin$ > mvn dependency:tree > [INFO] Scanning for projects... > [INFO] > [INFO] --------------------------------------< > com.github.jochenw.jmp:jwigrv-maven-plugin > >-------------------------------------- > [INFO] Building JWI Groovy Maven plugin 0.3-SNAPSHOT > [INFO] from pom.xml > [INFO] -----------------------------------------------------[ > maven-plugin ]----------------------------------------------------- > [INFO] > [INFO] --- dependency:3.8.1:tree (default-cli) @ jwigrv-maven-plugin --- > [INFO] com.github.jochenw.jmp:jwigrv-maven-plugin:maven-plugin:0.3-SNAPSHOT > [INFO] +- org.apache.maven:maven-core:jar:3.9.9:provided > [INFO] | +- org.apache.maven:maven-model:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-settings:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-settings-builder:jar:3.9.9:compile > [INFO] | | \- org.codehaus.plexus:plexus-sec-dispatcher:jar:2.0:compile > [INFO] | | \- org.codehaus.plexus:plexus-cipher:jar:2.0:compile > [INFO] | +- org.apache.maven:maven-builder-support:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-repository-metadata:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-artifact:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-model-builder:jar:3.9.9:compile > [INFO] | +- org.apache.maven:maven-resolver-provider:jar:3.9.9:compile > [INFO] | +- org.apache.maven.resolver:maven-resolver-impl:jar:1.9.22:compile > [INFO] | | \- > org.apache.maven.resolver:maven-resolver-named-locks:jar:1.9.22:compile > [INFO] | +- org.apache.maven.resolver:maven-resolver-api:jar:1.9.22:compile > [INFO] | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.9.22:compile > [INFO] | +- org.apache.maven.resolver:maven-resolver-util:jar:1.9.22:compile > [INFO] | +- org.apache.maven.shared:maven-shared-utils:jar:3.4.2:provided > [INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.9.0.M3:compile > [INFO] | | \- org.codehaus.plexus:plexus-xml:jar:3.0.1:compile > [INFO] | +- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.9.0.M3:compile > [INFO] | +- com.google.inject:guice:jar:5.1.0:provided > [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided > [INFO] | +- com.google.guava:guava:jar:33.2.1-jre:provided > [INFO] | +- com.google.guava:failureaccess:jar:1.0.2:provided > [INFO] | +- javax.inject:javax.inject:jar:1:compile > [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.5.1:compile > [INFO] | +- org.codehaus.plexus:plexus-classworlds:jar:2.8.0:compile > [INFO] | +- org.codehaus.plexus:plexus-interpolation:jar:1.27:compile > [INFO] | +- > org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile > [INFO] | \- org.slf4j:slf4j-api:jar:1.7.36:compile > [INFO] +- org.apache.maven:maven-plugin-api:jar:3.9.9:provided > [INFO] +- > org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.9.0:provided > [INFO] +- org.apache.groovy:groovy:jar:4.0.24:compile > [INFO] +- > org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:3.3.0:test > [INFO] | +- commons-io:commons-io:jar:2.2:test > [INFO] | \- org.codehaus.plexus:plexus-archiver:jar:2.2:test > [INFO] | +- > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:test > [INFO] | | +- junit:junit:jar:4.11:provided > [INFO] | | | \- org.hamcrest:hamcrest-core:jar:1.3:provided > [INFO] | | \- classworlds:classworlds:jar:1.1-alpha-2:test > [INFO] | \- org.codehaus.plexus:plexus-io:jar:2.0.4:test > [INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:5.11.3:test > [INFO] | +- org.junit.platform:junit-platform-engine:jar:1.11.3:test > [INFO] | | +- org.opentest4j:opentest4j:jar:1.3.0:test > [INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.11.3:test > [INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.11.3:test > [INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.2:test > [INFO] \- org.apache.maven:maven-compat:jar:3.9.9:compile > [INFO] \- org.apache.maven.wagon:wagon-provider-api:jar:3.5.3:compile > > On Thu, Dec 5, 2024 at 5:33 PM Tamás Cservenák <ta...@cservenak.net> wrote: > > > > And... Can you tell us how these dependencies come into play? > > > > Can you paste the (in color or in bw -- for Manfred) output of the > > tree command? > > > > Thanks > > T > > > > On Thu, Dec 5, 2024 at 2:41 PM Jochen Wiedmann > > <jochen.wiedm...@gmail.com> wrote: > > > > > > On Wed, Dec 4, 2024 at 10:10 PM Slawomir Jaranowski > > > <s.jaranow...@gmail.com> wrote: > > > > > > > It can be transitive dependencies from other dependencies in compile > > > > scope. > > > > > > > > look at output of dependency:tree > > > > > > I did, and it they are not. > > > > > > Jochen > > > > > > > On Wed, 4 Dec 2024 at 21:11, Jochen Wiedmann > > > > <jochen.wiedm...@gmail.com> wrote: > > > > > > > > > > Hi, > > > > > > > > > > a Maven plugin of mine has the following dependency: > > > > > > > > > > <dependency> > > > > > <groupId>org.apache.maven</groupId> > > > > > <artifactId>maven-core</artifactId> > > > > > <version>3.9.9</version> > > > > > <scope>provided</scope> > > > > > </dependency> > > > > > > > > > > As you can see. the dependency has scope "provided". Now upon building > > > > > the plugin I get the warning below. As fars as I can tell, these are > > > > > transitive dependencies of the Maven core. Now, I am wondering how to > > > > > get rid of these warnings. The only idea, that comes to mind, would be > > > > > to declare all of these as explicit dependencies with scope > > > > > "provided". but doesn't sound good. > > > > > > > > > > Are there any better ideas? > > > > > > > > > > Thanks, > > > > > > > > > > Jochen > > > > > > > > > > > > > > > [WARNING] > > > > > > > > > > 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-model:jar:3.9.9:compile > > > > > * org.apache.maven:maven-settings:jar:3.9.9:compile > > > > > * org.apache.maven:maven-settings-builder:jar:3.9.9:compile > > > > > * org.apache.maven:maven-builder-support:jar:3.9.9:compile > > > > > * org.apache.maven:maven-repository-metadata:jar:3.9.9:compile > > > > > * org.apache.maven:maven-artifact:jar:3.9.9:compile > > > > > * org.apache.maven:maven-model-builder:jar:3.9.9:compile > > > > > * org.apache.maven:maven-resolver-provider:jar:3.9.9:compile > > > > > * org.apache.maven:maven-compat:jar:3.9.9:compile > > > > > > > > > > > > > > > -- > > > > > The woman was born in a full-blown thunderstorm. She probably told it > > > > > to be quiet. It probably did. (Robert Jordan, Winter's heart) > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > > > > > > > > > -- > > > > Sławomir Jaranowski > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > > > > > -- > > > The woman was born in a full-blown thunderstorm. She probably told it > > > to be quiet. It probably did. (Robert Jordan, Winter's heart) > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > -- > The woman was born in a full-blown thunderstorm. She probably told it > to be quiet. It probably did. (Robert Jordan, Winter's heart) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org