无法在mvn依赖项中更改outputFormat:tree

时间:2012-02-14 16:22:33

标签: java maven dependencies

如上所述here,可以使用以下命令以graphml格式显示依赖项输出:

dependency:tree -DoutputType=graphml -DoutputFile=dependencygraphml

但是,无论我为outputType输入什么值,文件中的输出都不会改变。 Maven说他们支持“text,dot,graphml和tgf”here。目前我不知道我做错了什么。

顺便说一句,我正在使用maven 3.0.0。有什么想法可以检查吗?

1 个答案:

答案 0 :(得分:8)

正如您在此处和dzone的评论中发布的那样,必须指定最新版本的插件。否则可能会使用旧版本,但不支持graphml。

这可以这样做:

mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:tree -DoutputFile=deps.graphml -DoutputType=graphml
相关问题