Package org.apache.maven.plugin.version
Interface PluginVersionRequest
-
- All Known Implementing Classes:
DefaultPluginVersionRequest
public interface PluginVersionRequestCollects settings required to resolve the version for a plugin.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetArtifactId()Gets the artifact id of the plugin.java.lang.StringgetGroupId()Gets the group id of the plugin.ModelgetPom()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.RepositorySystemSessiongetRepositorySession()Gets the session to use for repository access.PluginVersionRequestsetArtifactId(java.lang.String artifactId)Sets the artifact id of the plugin.PluginVersionRequestsetGroupId(java.lang.String groupId)Sets the group id of the plugin.PluginVersionRequestsetPom(Model pom)Sets the POM whose build plugins are to be scanned for the version.PluginVersionRequestsetRepositories(java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories)Sets the remote repositories to use.PluginVersionRequestsetRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)Sets the session to use for repository access.
-
-
-
Method Detail
-
getGroupId
java.lang.String getGroupId()
Gets the group id of the plugin.- Returns:
- The group id of the plugin.
-
setGroupId
PluginVersionRequest setGroupId(java.lang.String groupId)
Sets the group id of the plugin.- Parameters:
groupId- The group id of the plugin.- Returns:
- This request, never
null.
-
getArtifactId
java.lang.String getArtifactId()
Gets the artifact id of the plugin.- Returns:
- The artifact id of the plugin.
-
setArtifactId
PluginVersionRequest setArtifactId(java.lang.String artifactId)
Sets the artifact id of the plugin.- Parameters:
artifactId- The artifact id of the plugin.- Returns:
- This request, never
null.
-
getPom
Model 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.
-
setPom
PluginVersionRequest setPom(Model pom)
Sets 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 benullto only search the plugin repositories.- Returns:
- This request, never
null.
-
getRepositories
java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
Gets the remote repositories to use.- Returns:
- The remote repositories to use, never
null.
-
setRepositories
PluginVersionRequest setRepositories(java.util.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.
-
getRepositorySession
org.eclipse.aether.RepositorySystemSession getRepositorySession()
Gets the session to use for repository access.- Returns:
- The repository session or
nullif not set.
-
setRepositorySession
PluginVersionRequest 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.
-
-