public class DefaultPluginVersionRequest extends Object implements PluginVersionRequest
| Constructor and Description |
|---|
DefaultPluginVersionRequest()
Creates an empty request.
|
DefaultPluginVersionRequest(Plugin plugin,
MavenSession session)
Creates a request for the specified plugin by copying settings from the specified build session.
|
DefaultPluginVersionRequest(Plugin plugin,
RepositorySystemSession session,
List<RemoteRepository> repositories)
Creates a request for the specified plugin using the given repository session and plugin repositories.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId()
Gets the artifact id of the plugin.
|
String |
getGroupId()
Gets the group id of the plugin.
|
Model |
getPom()
Gets the POM whose build plugins are to be scanned for the version.
|
List<RemoteRepository> |
getRepositories()
Gets the remote repositories to use.
|
RepositorySystemSession |
getRepositorySession()
Gets the session to use for repository access.
|
DefaultPluginVersionRequest |
setArtifactId(String artifactId)
Sets the artifact id of the plugin.
|
DefaultPluginVersionRequest |
setGroupId(String groupId)
Sets the group id of the plugin.
|
DefaultPluginVersionRequest |
setPom(Model pom)
Sets the POM whose build plugins are to be scanned for the version.
|
DefaultPluginVersionRequest |
setRepositories(List<RemoteRepository> repositories)
Sets the remote repositories to use.
|
DefaultPluginVersionRequest |
setRepositorySession(RepositorySystemSession session)
Sets the session to use for repository access.
|
public DefaultPluginVersionRequest()
public DefaultPluginVersionRequest(Plugin plugin, MavenSession session)
plugin - The plugin for which to resolve a version, must not be null.session - The Maven session to use, must not be null.public DefaultPluginVersionRequest(Plugin plugin, RepositorySystemSession session, List<RemoteRepository> repositories)
plugin - The plugin for which to resolve a version, must not be null.session - The repository session to use, must not be null.repositories - The plugin repositories to query, may be null.public String getGroupId()
PluginVersionRequestgetGroupId in interface PluginVersionRequestpublic DefaultPluginVersionRequest setGroupId(String groupId)
PluginVersionRequestsetGroupId in interface PluginVersionRequestgroupId - The group id of the plugin.null.public String getArtifactId()
PluginVersionRequestgetArtifactId in interface PluginVersionRequestpublic DefaultPluginVersionRequest setArtifactId(String artifactId)
PluginVersionRequestsetArtifactId in interface PluginVersionRequestartifactId - The artifact id of the plugin.null.public Model getPom()
PluginVersionRequestgetPom in interface PluginVersionRequestnull to only search the plugin
repositories.public DefaultPluginVersionRequest setPom(Model pom)
PluginVersionRequestsetPom in interface PluginVersionRequestpom - The POM whose build plugins are to be scanned for the version, may be null to only search the
plugin repositories.null.public List<RemoteRepository> getRepositories()
PluginVersionRequestgetRepositories in interface PluginVersionRequestnull.public DefaultPluginVersionRequest setRepositories(List<RemoteRepository> repositories)
PluginVersionRequestsetRepositories in interface PluginVersionRequestrepositories - The remote repositories to use.null.public RepositorySystemSession getRepositorySession()
PluginVersionRequestgetRepositorySession in interface PluginVersionRequestnull if not set.public DefaultPluginVersionRequest setRepositorySession(RepositorySystemSession session)
PluginVersionRequestsetRepositorySession in interface PluginVersionRequestsession - The repository session to use.null.Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.