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,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
Modifier and Type | Method and Description |
---|---|
Set<org.apache.maven.artifact.Artifact> |
getDependencies()
Returns the list of
Artifact used in class path scanning for annotations |
String |
getEncoding()
Gets the file encoding of the source files.
|
org.apache.maven.artifact.repository.ArtifactRepository |
getLocal() |
org.apache.maven.plugin.descriptor.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<org.apache.maven.artifact.repository.ArtifactRepository> |
getRemoteRepos() |
boolean |
isSkipErrorNoDescriptorsFound() |
PluginToolsRequest |
setDependencies(Set<org.apache.maven.artifact.Artifact> dependencies) |
PluginToolsRequest |
setEncoding(String encoding)
Sets the file encoding of the source files.
|
PluginToolsRequest |
setLocal(org.apache.maven.artifact.repository.ArtifactRepository local) |
PluginToolsRequest |
setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
PluginToolsRequest |
setProject(org.apache.maven.project.MavenProject project) |
PluginToolsRequest |
setRemoteRepos(List<org.apache.maven.artifact.repository.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, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
public org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptor()
PluginDescriptor
currently being populated as part of the build of the
current plugin project.getPluginDescriptor
in interface PluginToolsRequest
public PluginToolsRequest setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
setPluginDescriptor
in interface PluginToolsRequest
PluginToolsRequest.getPluginDescriptor()
public org.apache.maven.project.MavenProject getProject()
MavenProject
instance in use.getProject
in interface PluginToolsRequest
public PluginToolsRequest setProject(org.apache.maven.project.MavenProject project)
setProject
in interface PluginToolsRequest
PluginToolsRequest.getProject()
public String getEncoding()
getEncoding
in interface PluginToolsRequest
null
.public PluginToolsRequest setEncoding(String encoding)
setEncoding
in interface PluginToolsRequest
encoding
- 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 PluginToolsRequest
true
if no descriptor found should not cause a failurepublic PluginToolsRequest setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
setSkipErrorNoDescriptorsFound
in interface PluginToolsRequest
public Set<org.apache.maven.artifact.Artifact> getDependencies()
PluginToolsRequest
Artifact
used in class path scanning for annotationsgetDependencies
in interface PluginToolsRequest
public PluginToolsRequest setDependencies(Set<org.apache.maven.artifact.Artifact> dependencies)
setDependencies
in interface PluginToolsRequest
public List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepos()
getRemoteRepos
in interface PluginToolsRequest
public PluginToolsRequest setRemoteRepos(List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos)
setRemoteRepos
in interface PluginToolsRequest
public org.apache.maven.artifact.repository.ArtifactRepository getLocal()
getLocal
in interface PluginToolsRequest
public PluginToolsRequest setLocal(org.apache.maven.artifact.repository.ArtifactRepository local)
setLocal
in interface PluginToolsRequest
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.