------ Usage ------ John Casey Maria Odea Ching ------ 10 July 2006 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. Usage Below are the different goals and configurations of the Help plugin. * The <<>> Mojo The <<>> mojo is used to discover which profiles have been applied to the projects currently being built. For each project in the build session, it will output a list of profiles which have been applied to that project, along with the source of the profile (POM, <<>> or <<>>). You can execute this mojo using the following command: +-----+ mvn help:active-profiles +-----+ * The <<>> Mojo The <<>> mojo is used to discover information about Maven plugins. Given either a <<>> or a <<>>, an <<>> and optionally a <<>>, the mojo will lookup that plugin and output details about it. If the user also specifies which <<>> to describe, the <<>> mojo will limit output to the details of that mojo, including parameters. This mojo requires either the <<>> and <<>> parameters or the <<>> parameter to be specified: +-----+ mvn help:describe -DgroupId=org.somewhere -DartifactId=some-plugin -Dversion=0.0.0 +-----+ or +-----+ mvn help:describe -Dplugin=org.somewhere:some-plugin:0.0.0 +-----+ Here is an example with the <<>> parameter specified: +-----+ mvn help:describe -Dplugin=org.apache.maven.plugins:maven-help-plugin -Dmojo=describe +-----+ <> <<>> is always optional here. * The <<>> Mojo The <<>> mojo is used to make visible the POM that results from the application of interpolation, inheritance and active profiles. It provides a useful way of removing the guesswork about just what ends up in the POM that Maven uses to build your project. It will iterate over all projects in the current build session, printing the effective POM for each. The mojo can be executed using the following command: +-----+ mvn help:effective-pom +-----+ * The <<>> Mojo The <<>> mojo is used to view the settings that Maven actually uses to run the build. These settings are a result of merging the global file with the user's file, with the user's file taking precedence. The mojo can be executed using the following command: +-----+ mvn help:effective-settings +-----+ * Redirecting output to a file All the mojos listed above can use the optional <<>> parameter to divert the output to a file. Here is an example of that: +-----+ mvn help:active-profiles -Doutput=/path/to/file +-----+