[MDEP-799] tree: add optional output type json by MartinWitt · Pull Request #325 · apache/maven-dependency-plugin (original) (raw)

Following this checklist to help us incorporate your
contribution quickly and easily:

I will squash and update the commit in the end. There is still open discussion.

I sent the mail for this a few minutes ago so it should be signed soon.

I tried to understand the way you write unit/integration tests but it looks a bit complicated. What is the correct way to add a testcase? Best case, I can add a pom and check if the model written as json -> read by any JSON parser is equal to the model before.

The JSON files currently exist for you to see the current printed format. It will be deleted afterward.

This PR adds JSON output type to the maven-depdenceny-plugin with the goal tree.

Supersedes #207