Mavenプラグインの目標とパラメータを表示する方法
maven-eclipse
plugin – `mvn eclipse:goals? ‘のように、どのようにmavenプラグインの利用可能な目標が分かっていますか?この記事では、Mavenプラグインの目標全体を表示する方法を説明します。
1.ヘルプ:記述する
または、このhttp://maven.apache.org/plugins/maven-help-plugin/[maven-helpプラグイン]を使用して、プラグインの使用可能な目標とパラメータのリストを表示することもできます。例えば、
-
1.1。** `maven-eclipse`プラグインの利用可能な全ての目標を列挙します。
$ mvn help:describe -Dplugin=eclipse
出力
$ mvn help:describe -Dplugin=eclipse Name: Maven Eclipse Plugin Description: The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder) from a POM. Group Id: org.apache.maven.plugins Artifact Id: maven-eclipse-plugin Version: 2.9 Goal Prefix: eclipse This plugin has 13 goals: //... eclipse:myeclipse Description: Generates MyEclipse configuration files eclipse:myeclipse-clean Description: Deletes configuration files used by MyEclipse eclipse:rad Description: Generates the rad-6 configuration files. eclipse:rad-clean Description: Deletes the config files used by Rad-6. the files .j2ee and the file .websettings eclipse:remove-cache Description: Removes the not-available marker files from the repository. //...
-
1.2
maven-eclipse
、 “eclipse”ゴール、およびそのすべてのパラメータの詳細を表示します。
$ mvn help:describe -Dplugin=eclipse -Dmojo=eclipse -Dfull=true
出力
$ mvn help:describe -Dplugin=eclipse -Dmojo=eclipse -Dfull=true //... eclipse:eclipse Description: Generates the following eclipse configuration files: - .project and .classpath files - .setting/org.eclipse.jdt.core.prefs with project specific compiler//... Available parameters: addGroupIdToProjectName (Default: false) Expression: ${eclipse.addGroupIdToProjectName} If set to true, the groupId of the artifact is appended to the name of the generated Eclipse project. See projectNameTemplate for other options. additionalBuildcommands List of eclipse build commands to be added to the default ones. Old style: //...
-
1.3。**
maven-archetype`プラグインを記述する
help:describe`の例はほとんどありません:
$ mvn help:describe -Dplugin=archetype $ mvn help:describe -Dplugin=archetype -Dmojo=generate -Ddetail
参考文献
-
http://maven.apache.org/plugins/maven-eclipse-plugin/
[Maven Eclipse
プラグイン]。
http://maven.apache.org/plugins/maven-help-plugin/examples/describe-configuration.html
[Configuring
目標の説明]