public class DefaultPluginToolsRequest extends Object implements PluginToolsRequest
PluginToolsRequest, which is used to pass parameters to components used to extract
 MojoDescriptor instances from different types of metadata
 for a given plugin.| Constructor and Description | 
|---|
DefaultPluginToolsRequest(org.apache.maven.project.MavenProject project,
                                                  PluginDescriptor pluginDescriptor)  | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Artifact> | 
getDependencies()
Returns the list of  
Artifact used in class path scanning for annotations | 
String | 
getEncoding()
Gets the file encoding of the source files. 
 | 
ArtifactRepository | 
getLocal()  | 
PluginDescriptor | 
getPluginDescriptor()
Return the  
PluginDescriptor currently being populated as part of the build of the
 current plugin project. | 
org.apache.maven.project.MavenProject | 
getProject()
Return the current  
MavenProject instance in use. | 
List<ArtifactRepository> | 
getRemoteRepos()  | 
boolean | 
isSkipErrorNoDescriptorsFound() | 
PluginToolsRequest | 
setDependencies(Set<Artifact> dependencies)  | 
PluginToolsRequest | 
setEncoding(String encoding)
Sets the file encoding of the source files. 
 | 
PluginToolsRequest | 
setLocal(ArtifactRepository local)  | 
PluginToolsRequest | 
setPluginDescriptor(PluginDescriptor pluginDescriptor) | 
PluginToolsRequest | 
setProject(org.apache.maven.project.MavenProject project) | 
PluginToolsRequest | 
setRemoteRepos(List<ArtifactRepository> remoteRepos)  | 
PluginToolsRequest | 
setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
By default an exception is throw if no mojo descriptor is found. 
 | 
public DefaultPluginToolsRequest(org.apache.maven.project.MavenProject project, PluginDescriptor pluginDescriptor)
public PluginDescriptor getPluginDescriptor()
PluginDescriptor currently being populated as part of the build of the
 current plugin project.getPluginDescriptor in interface PluginToolsRequestpublic PluginToolsRequest setPluginDescriptor(PluginDescriptor pluginDescriptor)
setPluginDescriptor in interface PluginToolsRequestPluginToolsRequest.getPluginDescriptor()public org.apache.maven.project.MavenProject getProject()
MavenProject instance in use.getProject in interface PluginToolsRequestpublic PluginToolsRequest setProject(org.apache.maven.project.MavenProject project)
setProject in interface PluginToolsRequestPluginToolsRequest.getProject()public String getEncoding()
getEncoding in interface PluginToolsRequestnull.public PluginToolsRequest setEncoding(String encoding)
setEncoding in interface PluginToolsRequestencoding - The file encoding of the source files, may be empty or null to use the platform's
                 default encoding.public boolean isSkipErrorNoDescriptorsFound()
isSkipErrorNoDescriptorsFound in interface PluginToolsRequesttrue if no descriptor found should not cause a failurepublic PluginToolsRequest setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
setSkipErrorNoDescriptorsFound in interface PluginToolsRequestpublic Set<Artifact> getDependencies()
PluginToolsRequestArtifact used in class path scanning for annotationsgetDependencies in interface PluginToolsRequestpublic PluginToolsRequest setDependencies(Set<Artifact> dependencies)
setDependencies in interface PluginToolsRequestpublic List<ArtifactRepository> getRemoteRepos()
getRemoteRepos in interface PluginToolsRequestpublic PluginToolsRequest setRemoteRepos(List<ArtifactRepository> remoteRepos)
setRemoteRepos in interface PluginToolsRequestpublic ArtifactRepository getLocal()
getLocal in interface PluginToolsRequestpublic PluginToolsRequest setLocal(ArtifactRepository local)
setLocal in interface PluginToolsRequestCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.