public interface PluginToolsRequest
MojoDescriptor
instances from metadata for a certain type of mojo.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.
|
List<URI> |
getExternalJavadocBaseUrls() |
URI |
getInternalJavadocBaseUrl() |
String |
getInternalJavadocVersion() |
org.apache.maven.plugin.descriptor.PluginDescriptor |
getPluginDescriptor() |
org.apache.maven.project.MavenProject |
getProject() |
org.eclipse.aether.RepositorySystemSession |
getRepoSession()
Return a Repository Session
|
String |
getRequiredJavaVersion() |
org.apache.maven.settings.Settings |
getSettings() |
String |
getUsedMavenApiVersion() |
boolean |
isSkipErrorNoDescriptorsFound() |
PluginToolsRequest |
setDependencies(Set<org.apache.maven.artifact.Artifact> dependencies) |
PluginToolsRequest |
setEncoding(String encoding)
Sets the file encoding of the source files.
|
PluginToolsRequest |
setExternalJavadocBaseUrls(List<URI> javadocLinks) |
PluginToolsRequest |
setInternalJavadocBaseUrl(URI baseUrl) |
PluginToolsRequest |
setInternalJavadocVersion(String javadocVersion) |
PluginToolsRequest |
setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
PluginToolsRequest |
setProject(org.apache.maven.project.MavenProject project) |
void |
setRepoSession(org.eclipse.aether.RepositorySystemSession repoSession)
Set a Repository Session
|
PluginToolsRequest |
setRequiredJavaVersion(String requiredJavaVersion) |
PluginToolsRequest |
setSettings(org.apache.maven.settings.Settings settings) |
PluginToolsRequest |
setSkipErrorNoDescriptorsFound(boolean skipErrorNoDescriptorsFound)
By default an exception is throw if no mojo descriptor is found.
|
PluginToolsRequest |
setUsedMavenApiVersion(String mavenApiVersion) |
org.apache.maven.project.MavenProject getProject()
MavenProject
instance in use.PluginToolsRequest setProject(org.apache.maven.project.MavenProject project)
project
- the current MavenProject
getProject()
org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptor()
PluginDescriptor
currently being populated as part of the build of the
current plugin project.PluginToolsRequest setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
pluginDescriptor
- the PluginDescriptor
getPluginDescriptor()
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<org.apache.maven.artifact.Artifact> getDependencies()
Artifact
used in class path scanning for annotationsPluginToolsRequest setDependencies(Set<org.apache.maven.artifact.Artifact> dependencies)
dependencies
- the dependenciesorg.eclipse.aether.RepositorySystemSession getRepoSession()
void setRepoSession(org.eclipse.aether.RepositorySystemSession repoSession)
repoSession
- a Repository SessionPluginToolsRequest setInternalJavadocBaseUrl(URI baseUrl)
baseUrl
- may be relative to the current site's rootURI getInternalJavadocBaseUrl()
PluginToolsRequest setInternalJavadocVersion(String javadocVersion)
javadocVersion
- String getInternalJavadocVersion()
PluginToolsRequest setExternalJavadocBaseUrls(List<URI> javadocLinks)
javadocLinks
- List<URI> getExternalJavadocBaseUrls()
PluginToolsRequest setSettings(org.apache.maven.settings.Settings settings)
settings
- the Maven settingsorg.apache.maven.settings.Settings getSettings()
PluginToolsRequest setRequiredJavaVersion(String requiredJavaVersion)
requiredJavaVersion
- the required Java version for this plugin or null
if unknown.
Must be a value according to semantics of VersionConstraint
.String getRequiredJavaVersion()
null
if unknown.
Is a value according to semantics of VersionConstraint
.PluginToolsRequest setUsedMavenApiVersion(String mavenApiVersion)
mavenApiVersion
- String getUsedMavenApiVersion()
null
if unknownCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.