public class DefaultPluginVersionRequest extends java.lang.Object implements PluginVersionRequest
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId |
private java.lang.String |
groupId |
private Model |
pom |
private java.util.List<org.eclipse.aether.repository.RemoteRepository> |
repositories |
private org.eclipse.aether.RepositorySystemSession |
session |
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,
java.util.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 |
---|---|
java.lang.String |
getArtifactId()
Gets the artifact id of the plugin.
|
java.lang.String |
getGroupId()
Gets the group id of the plugin.
|
Model |
getPom()
Gets the POM whose build plugins are to be scanned for the version.
|
java.util.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(java.lang.String artifactId)
Sets the artifact id of the plugin.
|
DefaultPluginVersionRequest |
setGroupId(java.lang.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(java.util.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.
|
private java.lang.String groupId
private java.lang.String artifactId
private Model pom
private java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories
private org.eclipse.aether.RepositorySystemSession session
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, java.util.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 java.lang.String getGroupId()
PluginVersionRequest
getGroupId
in interface PluginVersionRequest
public DefaultPluginVersionRequest setGroupId(java.lang.String groupId)
PluginVersionRequest
setGroupId
in interface PluginVersionRequest
groupId
- The group id of the plugin.null
.public java.lang.String getArtifactId()
PluginVersionRequest
getArtifactId
in interface PluginVersionRequest
public DefaultPluginVersionRequest setArtifactId(java.lang.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 java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
PluginVersionRequest
getRepositories
in interface PluginVersionRequest
null
.public DefaultPluginVersionRequest setRepositories(java.util.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
.