Class PluginUtils
java.lang.Object
org.apache.maven.tools.plugin.util.PluginUtils
Convenience methods to play with Maven plugins.
- Author:
- jdcasey
- 
Method SummaryModifier and TypeMethodDescriptionstatic String[]findSources(String basedir, String include) static String[]findSources(String basedir, String include, String exclude) static booleanisMavenReport(String mojoClassName, org.apache.maven.project.MavenProject project) static voidsortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters) Sorts the specified mojo parameters by name.static voidSorts the specified mojo descriptors by goal name.
- 
Method Details- 
findSources- Parameters:
- basedir- not null
- include- not null
- Returns:
- list of included files with default SCM excluded files
 
- 
findSources- Parameters:
- basedir- not null
- include- not null
- exclude- could be null
- Returns:
- list of included files
 
- 
sortMojospublic static void sortMojos(List<org.apache.maven.plugin.descriptor.MojoDescriptor> mojoDescriptors) Sorts the specified mojo descriptors by goal name.- Parameters:
- mojoDescriptors- The mojo descriptors to sort, may be- null.
- See Also:
 
- 
sortMojoParameterspublic static void sortMojoParameters(List<org.apache.maven.plugin.descriptor.Parameter> parameters) Sorts the specified mojo parameters by name.- Parameters:
- parameters- The mojo parameters to sort, may be- null.
- Since:
- 2.4.4
- See Also:
 
- 
isMavenReportpublic static boolean isMavenReport(String mojoClassName, org.apache.maven.project.MavenProject project) throws IllegalArgumentException - Parameters:
- mojoClassName- a fully qualified Mojo implementation class name, not null
- project- a MavenProject instance, could be null
- Returns:
- trueif the Mojo class implements- MavenReport,- falseotherwise.
- Throws:
- IllegalArgumentException- if any
- Since:
- 3.10.0
 
 
-