public final class PluginUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,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 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–2015 The Apache Software Foundation. All rights reserved.