gnodet commented on issue #11442: URL: https://github.com/apache/maven/issues/11442#issuecomment-4776732414
Working as designed. Since rc-5, `maven.consumer.pom.flatten` defaults to **false**, which means the consumer POM uses the raw model and **preserves `provided` dependencies**. The scope filtering (stripping non-transitive deps including `provided`) only applies when `flatten=true` is explicitly enabled. In that case, the full build POM is still published with a `build` classifier, so the information remains accessible to tools. Summary: | Scenario | `provided` in consumer POM? | |---|---| | Default (flatten=false, rc-5+) | ✅ Yes | | `flatten=true` | ❌ No (by design — build POM has them) | Closing as not-a-bug. The What'''s New page could be updated to clarify that flattening is no longer the default. -- 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]
