org.apache.maven.tools.plugin
Interface PluginToolsRequest

All Known Implementing Classes:
DefaultPluginToolsRequest

public interface PluginToolsRequest

Request that encapsulates all information relevant to the process of extracting MojoDescriptor instances from metadata for a certain type of mojo.

Since:
2.5
Author:
jdcasey

Method Summary
 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.
 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(MavenProject project)
           
 PluginToolsRequest setRemoteRepos(List<ArtifactRepository> remoteRepos)
           
 PluginToolsRequest setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
          By default an exception is throw if no mojo descriptor is found.
 

Method Detail

getProject

MavenProject getProject()
Return the current MavenProject instance in use.


setProject

PluginToolsRequest setProject(MavenProject project)
See Also:
getProject()

getPluginDescriptor

PluginDescriptor getPluginDescriptor()
Return the PluginDescriptor currently being populated as part of the build of the current plugin project.


setPluginDescriptor

PluginToolsRequest setPluginDescriptor(PluginDescriptor pluginDescriptor)
See Also:
getPluginDescriptor()

getEncoding

String getEncoding()
Gets the file encoding of the source files.

Returns:
The file encoding of the source files, never null.

setEncoding

PluginToolsRequest setEncoding(String encoding)
Sets the file encoding of the source files.

Parameters:
encoding - The file encoding of the source files, may be empty or null to use the platform's default encoding.
Returns:
This request.

setSkipErrorNoDescriptorsFound

PluginToolsRequest setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
By default an exception is throw if no mojo descriptor is found. As the maven-plugin is defined in core, the descriptor generator mojo is bound to generate-resources phase. But for annotations, the compiled classes are needed, so skip error

Since:
3.0

isSkipErrorNoDescriptorsFound

boolean isSkipErrorNoDescriptorsFound()
Returns:
Since:
3.0

getDependencies

Set<Artifact> getDependencies()
Returns the list of Artifact used in class path scanning for annotations

Returns:
Since:
3.0

setDependencies

PluginToolsRequest setDependencies(Set<Artifact> dependencies)
Parameters:
dependencies -
Returns:
Since:
3.0

getRemoteRepos

List<ArtifactRepository> getRemoteRepos()
Returns:
Since:
3.0

setRemoteRepos

PluginToolsRequest setRemoteRepos(List<ArtifactRepository> remoteRepos)
Parameters:
remoteRepos -
Returns:
Since:
3.0

getLocal

ArtifactRepository getLocal()
Returns:
Since:
3.0

setLocal

PluginToolsRequest setLocal(ArtifactRepository local)
Parameters:
local -
Returns:
Since:
3.0


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.