slawekjaranowski commented on PR #14190: URL: https://github.com/apache/maven/pull/14190#issuecomment-7286967447
As an additional safeguard, we can extend the existing plugin dependency validation. `MavenScopeDependenciesValidator` already reports plugins that declare Maven artifacts (`org.apache.maven:*` 3.x) outside the `provided` scope. We can make it also check `org.eclipse.sisu:org.eclipse.sisu.inject` and `org.eclipse.sisu:org.eclipse.sisu.plexus`, since Maven core provides both. A plugin that declares Sisu with `compile` / `runtime` scope would then get the usual "Plugin should declare Maven artifacts in `provided` scope" validation warning. I would do it as a separate PR on master and backport it to maven-4.0.x, maven-3.10.x and maven-3.9.x; the validator is the same on all these branches. WDYT? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
