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,
org.eclipse.aether.RepositorySystemSession session,
List<org.eclipse.aether.repository.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<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.
|
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<org.eclipse.aether.repository.RemoteRepository> repositories)
Sets the remote repositories to use.
|
DefaultPluginVersionRequest |
setRepositorySession(org.eclipse.aether.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, org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.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()
PluginVersionRequest
getGroupId
in interface PluginVersionRequest
public DefaultPluginVersionRequest setGroupId(String groupId)
PluginVersionRequest
setGroupId
in interface PluginVersionRequest
groupId
- The group id of the plugin.null
.public String getArtifactId()
PluginVersionRequest
getArtifactId
in interface PluginVersionRequest
public DefaultPluginVersionRequest setArtifactId(String artifactId)
PluginVersionRequest
setArtifactId
in interface PluginVersionRequest
artifactId
- The artifact id of the plugin.null
.public Model getPom()
PluginVersionRequest
getPom
in interface PluginVersionRequest
null
to only search the plugin
repositories.public DefaultPluginVersionRequest setPom(Model pom)
PluginVersionRequest
setPom
in interface PluginVersionRequest
pom
- The POM whose build plugins are to be scanned for the version, may be null
to only search the
plugin repositories.null
.public List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
PluginVersionRequest
getRepositories
in interface PluginVersionRequest
null
.public DefaultPluginVersionRequest setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories)
PluginVersionRequest
setRepositories
in interface PluginVersionRequest
repositories
- The remote repositories to use.null
.public org.eclipse.aether.RepositorySystemSession getRepositorySession()
PluginVersionRequest
getRepositorySession
in interface PluginVersionRequest
null
if not set.public DefaultPluginVersionRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession session)
PluginVersionRequest
setRepositorySession
in interface PluginVersionRequest
session
- The repository session to use.null
.Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.