2007年6月11日 星期一

在Maven2中取得Plug-in資訊

取得指定Plugin相關資訊
mvn help:describe -DgroupId=org.somewhere -DartifactId=some-plugin -Dversion=0.0.0
使用 full 參數顯示所有goal的參數資訊
使用 output 參數輸出至檔案

Example:
mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-idea-plugin -Dversion=2.0
or
mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-idea-plugin -Dfull=true -Doutput=plug.txt

簡易使用法:
mvn help:describe -Dplugin=plugin-prefix -Dfull=true

Example:
mvn help:describe -Dplugin=clean -Dfull=true

沒有留言: