Validating maven-surefire-plugin providers (dynamically loaded) #130
Labels
enhancement
New feature or request.
help wanted
Extra attention is needed.
in design
Design work should be finished before coding.
Is your feature request related to a problem? Please describe.
Currently,
maven-surefire-plugin
loads libraries at run-time based on which testing frameworks are in use in the codebase. These providers are not validated due to not being declared as dependency in the project configuration.Describe the solution you'd like
Within reason, all loaded dependencies to be validated before use. Specifically for this issue:
Prematurely resolving and validating all surefire-providers, such that whatever maven-surefire-plugin decides to use is validated already. (The surefire-providers aggregator POM could be used. Version decided by taking version of maven-surefire-plugin that is used.)
Describe alternatives you've considered
Additional context
See code-base, specifically
ArtifactResolver.java
NOTE: so far, I have not found a way to resolve the POM artifact as such and read the
modules
from it. It might require manually downloading the POM file and reading it with a lower-level maven API.The text was updated successfully, but these errors were encountered: