如here所述,可以使用以下命令以graphml格式显示依赖项输出:
dependency:tree -DoutputType=graphml -DoutputFile=dependencygraphml但是,无论我为outputType输入什么值,文件中的输出都不会改变。Maven表示,它们支持“文本、点、图形和转化生长因子”here。目前我不知道我做错了什么。
顺便说一下,我正在使用maven 3.0.0。有什么我可以检查的吗?
发布于 2012-11-09 16:24:40
正如你在这里和dzone的评论中所说的,你必须指定一个足够新的插件版本。否则可能会使用旧版本,该版本目前还不支持graphml。
这可以像这样完成:
mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:tree -DoutputFile=deps.graphml -DoutputType=graphmlhttps://stackoverflow.com/questions/9280394
复制相似问题