执行mvn help时输出有效的xml:effective-pom

osc*_*enk 12 xml maven-3 maven

当我执行mvn help:effective-pom它时也输出[INFO] ...到stdout.-q在处理正确的文件时,通过输出来压缩它

我想将有效的pom传输到xmlstarlet以获得有效的属性,但由于输出不是有效的xml,它会失败.

http://jira.codehaus.org/browse/MPH-23上,我的用例请求被关闭为wontfix(至少在我的理解中).

小智 13

使用输出属性:

mvn help:effective-pom -Doutput = <FILE>