public final class PluginUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
MAVEN_COMPONENTS
Deprecated.
wrong approach (fake components), documented parameter default values instead to learn people how to
discover them
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
findSources(java.lang.String basedir,
java.lang.String include) |
static java.lang.String[] |
findSources(java.lang.String basedir,
java.lang.String include,
java.lang.String exclude) |
static void |
sortMojoParameters(java.util.List<org.apache.maven.plugin.descriptor.Parameter> parameters)
Sorts the specified mojo parameters by name.
|
static void |
sortMojos(java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
Sorts the specified mojo descriptors by goal name.
|
public static final java.util.Map<java.lang.String,java.lang.String> MAVEN_COMPONENTS
public static java.lang.String[] findSources(java.lang.String basedir, java.lang.String include)
basedir
- not nullinclude
- not nullpublic static java.lang.String[] findSources(java.lang.String basedir, java.lang.String include, java.lang.String exclude)
basedir
- not nullinclude
- not nullexclude
- could be nullpublic static void sortMojos(java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
mojoDescriptors
- The mojo descriptors to sort, may be null
.MojoDescriptor.getGoal()
public static void sortMojoParameters(java.util.List<org.apache.maven.plugin.descriptor.Parameter> parameters)
parameters
- The mojo parameters to sort, may be null
.Parameter.getName()