The
help goal provides general information about the
source plugin, including available goals and their parameters.
Use the
detail parameter to get detailed information about all goals and their configuration options:
# Display basic plugin information
$ mvn source:help
# Display detailed information about all goals and parameters
$ mvn source:help -Ddetail=true
If you need to use the plugin's full coordinates instead of its prefix, you can do that as follows:
# Display basic plugin information
$ mvn org.apache.maven.plugins:maven-source-plugin:3.3.1:help
# Display detailed information about all goals and parameters
$ mvn org.apache.maven.plugins:maven-source-plugin:3.3.1:help -Ddetail=true
You can also use the Maven
help plugin to describe the
source plugin:
# Basic plugin description using help plugin
$ mvn help:describe -Dplugin="org.apache.maven.plugins:maven-source-plugin:3.3.1"
# Detailed plugin description with all parameters
$ mvn help:describe -Dplugin="org.apache.maven.plugins:maven-source-plugin:3.3.1" -Ddetail=true
To get specific information about a goal, use the
goal parameter:
# Help for the 'jar' goal
$ mvn org.apache.maven.plugins:maven-source-plugin:3.3.1:help -Dgoal=jar -Ddetail=true
# Help for the 'jar' goal using the help plugin
$ mvn help:describe -Dplugin="org.apache.maven.plugins:maven-source-plugin:3.3.1" -Dgoal=jar -Ddetail=true
Note: When using the plugin's help goal directly, you don't need to specify the version if the plugin is already configured in your POM or if you want to use the latest version.