[x] I used gofmt for formatting the code before submitting the pull request.
This pull request brings changes and refactoring related to the execution of the maven-dep-tree plugin. All affected functions have also been modified.
[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
This pull request brings changes and refactoring related to the execution of the maven-dep-tree plugin. All affected functions have also been modified.