public interface PluginToolsRequest
MojoDescriptor
instances from metadata for a certain type of mojo.| 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() |
MavenProject |
getProject() |
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(MavenProject project) |
PluginToolsRequest |
setRemoteRepos(List<ArtifactRepository> remoteRepos) |
PluginToolsRequest |
setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
By default an exception is throw if no mojo descriptor is found.
|
MavenProject getProject()
MavenProject instance in use.PluginToolsRequest setProject(MavenProject project)
project - the current MavenProjectgetProject()PluginDescriptor getPluginDescriptor()
PluginDescriptor currently being populated as part of the build of the
current plugin project.PluginToolsRequest setPluginDescriptor(PluginDescriptor pluginDescriptor)
pluginDescriptor - the PluginDescriptorgetPluginDescriptor()String getEncoding()
null.PluginToolsRequest setEncoding(String encoding)
encoding - The file encoding of the source files, may be empty or null to use the platform's
default encoding.PluginToolsRequest setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
skipErrorNoDescriptorsFound - true to skip errors because of not found descriptorsboolean isSkipErrorNoDescriptorsFound()
true if no descriptor found should not cause a failureSet<Artifact> getDependencies()
Artifact used in class path scanning for annotationsPluginToolsRequest setDependencies(Set<Artifact> dependencies)
dependencies - the dependenciesList<ArtifactRepository> getRemoteRepos()
PluginToolsRequest setRemoteRepos(List<ArtifactRepository> remoteRepos)
remoteRepos - the remote repositoriesArtifactRepository getLocal()
PluginToolsRequest setLocal(ArtifactRepository local)
local - the local repositoryCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.