Maven2でプラグインの使い方を調べる
こちらを参照
http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html
例えば、
- groupId=com.example
- artifactId=maven-hello-plugin
- version=1.0
- goal=hello
- 詳細表示
の場合は、
mvn help:describe -Dplugin=com.example:maven-hello-plugin:1.0 -Dmojo=hello -Dfull=true
とすれば、こんな感じでプラグインの仕様が確認できる。
[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] ---------------------------------------------------------------------------- [INFO] Building app [INFO] task-segment: [help:describe] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [help:describe] [INFO] Mojo: 'hello:hello' =============================================== Goal: 'hello' Description: Goal which touches a timestamp file. Implementation: com.example.HelloMojo Language: java Parameters:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-