| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.version.DefaultPluginVersionRequest
public class DefaultPluginVersionRequest
Collects settings required to resolve the version for a plugin.
| Constructor Summary | |
|---|---|
| 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.sonatype.aether.RepositorySystemSession session,
                            List<org.sonatype.aether.repository.RemoteRepository> repositories)Creates a request for the specified plugin using the given repository session and plugin repositories. | |
| Method Summary | |
|---|---|
|  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.sonatype.aether.repository.RemoteRepository> | getRepositories()Gets the remote repositories to use. | 
|  org.sonatype.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.sonatype.aether.repository.RemoteRepository> repositories)Sets the remote repositories to use. | 
|  DefaultPluginVersionRequest | setRepositorySession(org.sonatype.aether.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 DefaultPluginVersionRequest()
public DefaultPluginVersionRequest(Plugin plugin,
                                   MavenSession session)
plugin - The plugin for which to resolve a version, must not be null.repositoryRequest - The repository request to copy from, must not be null.
public DefaultPluginVersionRequest(Plugin plugin,
                                   org.sonatype.aether.RepositorySystemSession session,
                                   List<org.sonatype.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.| Method Detail | 
|---|
public String getGroupId()
PluginVersionRequest
getGroupId in interface PluginVersionRequestpublic DefaultPluginVersionRequest setGroupId(String groupId)
PluginVersionRequest
setGroupId in interface PluginVersionRequestgroupId - The group id of the plugin.
null.public String getArtifactId()
PluginVersionRequest
getArtifactId in interface PluginVersionRequestpublic DefaultPluginVersionRequest setArtifactId(String artifactId)
PluginVersionRequest
setArtifactId in interface PluginVersionRequestartifactId - The artifact id of the plugin.
null.public Model getPom()
PluginVersionRequest
getPom in interface PluginVersionRequestnull to only search the plugin
         repositories.public DefaultPluginVersionRequest setPom(Model pom)
PluginVersionRequest
setPom 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<org.sonatype.aether.repository.RemoteRepository> getRepositories()
PluginVersionRequest
getRepositories in interface PluginVersionRequestnull.public DefaultPluginVersionRequest setRepositories(List<org.sonatype.aether.repository.RemoteRepository> repositories)
PluginVersionRequest
setRepositories in interface PluginVersionRequestrepositories - The remote repositories to use.
null.public org.sonatype.aether.RepositorySystemSession getRepositorySession()
PluginVersionRequest
getRepositorySession in interface PluginVersionRequestnull if not set.public DefaultPluginVersionRequest setRepositorySession(org.sonatype.aether.RepositorySystemSession session)
PluginVersionRequest
setRepositorySession in interface PluginVersionRequestsession - The repository session to use.
null.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||