Error modifying outputFormat depending on mvn: tree

As described here , you can display the result of the dependency in graphml format using the following command:

dependency:tree -DoutputType=graphml -DoutputFile=dependencygraphml 

But, there is no value that I enter for outputType , the output in the file does not change. Maven says they support "text, dot, graphml and tgf" here . Currently, I have no idea what I'm doing wrong.

By the way, I am working with maven 3.0.0. Any ideas what I could check?

+6
source share
1 answer

As you wrote in the comments here and in dzone, you need to specify a fairly recent version of the plugin. Otherwise, an older version may be used that does not yet support graphics.

This can be done as follows:

 mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:tree -DoutputFile=deps.graphml -DoutputType=graphml 
+8
source

Source: https://habr.com/ru/post/908446/


All Articles