public class DefaultPluginPrefixRequest extends Object implements PluginPrefixRequest
| Constructor and Description |
|---|
DefaultPluginPrefixRequest()
Creates an empty request.
|
DefaultPluginPrefixRequest(String prefix,
MavenSession session)
Creates a request for the specified plugin prefix and build session.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPluginGroups()
Gets the list of group ids to scan for the plugin prefix.
|
Model |
getPom()
Gets the POM whose build plugins are to be scanned for the prefix.
|
String |
getPrefix()
Gets the prefix of the plugin.
|
List<org.eclipse.aether.repository.RemoteRepository> |
getRepositories()
Gets the remote repositories to use.
|
org.eclipse.aether.RepositorySystemSession |
getRepositorySession()
Gets the session to use for repository access.
|
DefaultPluginPrefixRequest |
setPluginGroups(List<String> pluginGroups)
Sets the list of group ids to scan for the plugin prefix.
|
DefaultPluginPrefixRequest |
setPom(Model pom)
Sets the POM whose build plugins are to be scanned for the prefix.
|
DefaultPluginPrefixRequest |
setPrefix(String prefix)
Sets the prefix of the plugin.
|
DefaultPluginPrefixRequest |
setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories)
Sets the remote repositories to use.
|
DefaultPluginPrefixRequest |
setRepositorySession(org.eclipse.aether.RepositorySystemSession session)
Sets the session to use for repository access.
|
public DefaultPluginPrefixRequest()
public DefaultPluginPrefixRequest(String prefix, MavenSession session)
prefix - The plugin prefix to resolve, must not be null.session - The build session from which to derive further settings, must not be null.public String getPrefix()
PluginPrefixRequestgetPrefix in interface PluginPrefixRequestpublic DefaultPluginPrefixRequest setPrefix(String prefix)
PluginPrefixRequestsetPrefix in interface PluginPrefixRequestprefix - The prefix of the plugin.null.public List<String> getPluginGroups()
PluginPrefixRequestgetPluginGroups in interface PluginPrefixRequestnull.public DefaultPluginPrefixRequest setPluginGroups(List<String> pluginGroups)
PluginPrefixRequestsetPluginGroups in interface PluginPrefixRequestpluginGroups - The list of group ids to scan for the plugin prefix, may be null.null.public Model getPom()
PluginPrefixRequestgetPom in interface PluginPrefixRequestnull to only search the plugin
repositories.public DefaultPluginPrefixRequest setPom(Model pom)
PluginPrefixRequestsetPom in interface PluginPrefixRequestpom - The POM whose build plugins are to be scanned for the prefix, may be null to only search the
plugin repositories.null.public List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
PluginPrefixRequestgetRepositories in interface PluginPrefixRequestnull.public DefaultPluginPrefixRequest setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories)
PluginPrefixRequestsetRepositories in interface PluginPrefixRequestrepositories - The remote repositories to use.null.public org.eclipse.aether.RepositorySystemSession getRepositorySession()
PluginPrefixRequestgetRepositorySession in interface PluginPrefixRequestnull if not set.public DefaultPluginPrefixRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession session)
PluginPrefixRequestsetRepositorySession in interface PluginPrefixRequestsession - The repository session to use.null.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.