|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.prefix.DefaultPluginPrefixRequest
public class DefaultPluginPrefixRequest
Collects settings required to resolve a plugin prefix.
Constructor Summary | |
---|---|
DefaultPluginPrefixRequest()
Creates an empty request. |
|
DefaultPluginPrefixRequest(String prefix,
MavenSession session)
Creates a request for the specified plugin prefix and build session. |
Method Summary | |
---|---|
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<RemoteRepository> |
getRepositories()
Gets the remote repositories to use. |
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<RemoteRepository> repositories)
Sets the remote repositories to use. |
DefaultPluginPrefixRequest |
setRepositorySession(RepositorySystemSession session)
Sets the session to use for repository access. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
public String getPrefix()
PluginPrefixRequest
getPrefix
in interface PluginPrefixRequest
public DefaultPluginPrefixRequest setPrefix(String prefix)
PluginPrefixRequest
setPrefix
in interface PluginPrefixRequest
prefix
- The prefix of the plugin.
null
.public List<String> getPluginGroups()
PluginPrefixRequest
getPluginGroups
in interface PluginPrefixRequest
null
.public DefaultPluginPrefixRequest setPluginGroups(List<String> pluginGroups)
PluginPrefixRequest
setPluginGroups
in interface PluginPrefixRequest
pluginGroups
- The list of group ids to scan for the plugin prefix, may be null
.
null
.public Model getPom()
PluginPrefixRequest
getPom
in interface PluginPrefixRequest
null
to only search the plugin
repositories.public DefaultPluginPrefixRequest setPom(Model pom)
PluginPrefixRequest
setPom
in interface PluginPrefixRequest
pom
- The POM whose build plugins are to be scanned for the prefix, may be null
to only search the
plugin repositories.
null
.public List<RemoteRepository> getRepositories()
PluginPrefixRequest
getRepositories
in interface PluginPrefixRequest
null
.public DefaultPluginPrefixRequest setRepositories(List<RemoteRepository> repositories)
PluginPrefixRequest
setRepositories
in interface PluginPrefixRequest
repositories
- The remote repositories to use.
null
.public RepositorySystemSession getRepositorySession()
PluginPrefixRequest
getRepositorySession
in interface PluginPrefixRequest
null
if not set.public DefaultPluginPrefixRequest setRepositorySession(RepositorySystemSession session)
PluginPrefixRequest
setRepositorySession
in interface PluginPrefixRequest
session
- The repository session to use.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |