arturobernalg opened a new pull request, #1427: URL: https://github.com/apache/maven-assembly-plugin/pull/1427
Fixes #1422 A handler declared through `META-INF/plexus/components.xml` is a singleton that keeps its configuration and the collected content in fields. With four modules using the same custom handler under `-T4`, every aggregate came out wrong in 6 out of 6 runs: lines from other modules, and some of its own files missing. Assemblies that declare a container descriptor handler are now created one at a time. This also covers third-party handlers, which a per-archive state in `SimpleAggregatingDescriptorHandler` would not, and keeps the configuration and injection that `components.xml` provides, which creating new instances would lose. The cost is that such assemblies no longer run in parallel with each other; assemblies without handlers are unaffected. Added two unit tests (the one with a handler fails without the change). `mvn verify -Prun-its` passes, and the reproducer was correct in 8 out of 8 parallel runs. --- To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) check one of the following: - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- 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]
