Package org.apache.maven.plugin.prefix
Interface PluginPrefixRequest
-
- All Known Implementing Classes:
DefaultPluginPrefixRequest
public interface PluginPrefixRequestCollects settings required to resolve a plugin prefix.- Since:
- 3.0
- Author:
- Benjamin Bentmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getPluginGroups()Gets the list of group ids to scan for the plugin prefix.org.apache.maven.model.ModelgetPom()Gets the POM whose build plugins are to be scanned for the prefix.java.lang.StringgetPrefix()Gets the prefix of the plugin.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.PluginPrefixRequestsetPluginGroups(java.util.List<java.lang.String> pluginGroups)Sets the list of group ids to scan for the plugin prefix.PluginPrefixRequestsetPom(org.apache.maven.model.Model pom)Sets the POM whose build plugins are to be scanned for the prefix.PluginPrefixRequestsetPrefix(java.lang.String prefix)Sets the prefix of the plugin.PluginPrefixRequestsetRepositories(java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories)Sets the remote repositories to use.PluginPrefixRequestsetRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)Sets the session to use for repository access.
-
-
-
Method Detail
-
getPrefix
java.lang.String getPrefix()
Gets the prefix of the plugin.- Returns:
- The prefix of the plugin.
-
setPrefix
PluginPrefixRequest setPrefix(java.lang.String prefix)
Sets the prefix of the plugin.- Parameters:
prefix- The prefix of the plugin.- Returns:
- This request, never
null.
-
getPluginGroups
java.util.List<java.lang.String> getPluginGroups()
Gets the list of group ids to scan for the plugin prefix.- Returns:
- The list of group ids to scan for the plugin prefix, never
null.
-
setPluginGroups
PluginPrefixRequest setPluginGroups(java.util.List<java.lang.String> pluginGroups)
Sets the list of group ids to scan for the plugin prefix.- Parameters:
pluginGroups- The list of group ids to scan for the plugin prefix, may benull.- Returns:
- This request, never
null.
-
getPom
org.apache.maven.model.Model getPom()
Gets the POM whose build plugins are to be scanned for the prefix.- Returns:
- The POM whose build plugins are to be scanned for the prefix or
nullto only search the plugin repositories.
-
setPom
PluginPrefixRequest setPom(org.apache.maven.model.Model pom)
Sets the POM whose build plugins are to be scanned for the prefix.- Parameters:
pom- The POM whose build plugins are to be scanned for the prefix, 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
PluginPrefixRequest 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
PluginPrefixRequest 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.
-
-