Package org.apache.maven.plugin.version
Interface PluginVersionRequest
- All Known Implementing Classes:
- DefaultPluginVersionRequest
public interface PluginVersionRequest
Collects settings required to resolve the version for a plugin.
- Since:
- 3.0
- Author:
- Benjamin Bentmann
- 
Method SummaryModifier and TypeMethodDescriptionGets the artifact id of the plugin.Gets the group id of the plugin.getPom()Gets the POM whose build plugins are to be scanned for the version.List<org.eclipse.aether.repository.RemoteRepository> Gets the remote repositories to use.org.eclipse.aether.RepositorySystemSessionGets the session to use for repository access.setArtifactId(String artifactId) Sets the artifact id of the plugin.setGroupId(String groupId) Sets the group id of the plugin.Sets the POM whose build plugins are to be scanned for the version.setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories) Sets the remote repositories to use.setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Sets the session to use for repository access.
- 
Method Details- 
getGroupIdString getGroupId()Gets the group id of the plugin.- Returns:
- The group id of the plugin.
 
- 
setGroupIdSets the group id of the plugin.- Parameters:
- groupId- The group id of the plugin.
- Returns:
- This request, never null.
 
- 
getArtifactIdString getArtifactId()Gets the artifact id of the plugin.- Returns:
- The artifact id of the plugin.
 
- 
setArtifactIdSets the artifact id of the plugin.- Parameters:
- artifactId- The artifact id of the plugin.
- Returns:
- This request, never null.
 
- 
getPomModel getPom()Gets the POM whose build plugins are to be scanned for the version.- Returns:
- The POM whose build plugins are to be scanned for the version or nullto only search the plugin repositories.
 
- 
setPomSets the POM whose build plugins are to be scanned for the version.- Parameters:
- pom- The POM whose build plugins are to be scanned for the version, may be- nullto only search the plugin repositories.
- Returns:
- This request, never null.
 
- 
getRepositoriesList<org.eclipse.aether.repository.RemoteRepository> getRepositories()Gets the remote repositories to use.- Returns:
- The remote repositories to use, never null.
 
- 
setRepositoriesPluginVersionRequest setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories) Sets the remote repositories to use. Note: When creating a request from a project, be sure to use the plugin repositories and not the regular project repositories.- Parameters:
- repositories- The remote repositories to use.
- Returns:
- This request, never null.
 
- 
getRepositorySessionorg.eclipse.aether.RepositorySystemSession getRepositorySession()Gets the session to use for repository access.- Returns:
- The repository session or nullif not set.
 
- 
setRepositorySessionPluginVersionRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Sets the session to use for repository access.- Parameters:
- repositorySession- The repository session to use.
- Returns:
- This request, never null.
 
 
-