public final class PluginUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
MAVEN_COMPONENTS
Expression associated with class types to recognize Maven objects (injected in fact as parameters by
maven-core's PluginParameterExpressionEvaluator)
like components ("real" components are injected by Plexus).
|
Modifier and Type | Method and Description |
---|---|
static String[] |
findSources(String basedir,
String include) |
static String[] |
findSources(String basedir,
String include,
String exclude) |
static void |
sortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters)
Sorts the specified mojo parameters by name.
|
static void |
sortMojos(List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
Sorts the specified mojo descriptors by goal name.
|
public static final Map<String,String> MAVEN_COMPONENTS
public static String[] findSources(String basedir, String include)
basedir
- not nullinclude
- not nullpublic static String[] findSources(String basedir, String include, String exclude)
basedir
- not nullinclude
- not nullexclude
- could be nullpublic static void sortMojos(List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors)
mojoDescriptors
- The mojo descriptors to sort, may be null
.MojoDescriptor.getGoal()
public static void sortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters)
parameters
- The mojo parameters to sort, may be null
.Parameter.getName()
Copyright © 2004-2019 The Apache Software Foundation. All Rights Reserved.