@Component(role=ToolchainManager.class) public class DefaultToolchainManager extends java.lang.Object implements ToolchainManager
ROLE| Constructor and Description |
|---|
DefaultToolchainManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getStorageKey(java.lang.String type) |
Toolchain |
getToolchainFromBuildContext(java.lang.String type,
MavenSession session)
Retrieve toolchain of specified type from build context.
|
java.util.List<Toolchain> |
getToolchains(MavenSession session,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> requirements)
Select all toolchains available in user settings matching the type and requirements,
independently from
maven-toolchains-plugin. |
public Toolchain getToolchainFromBuildContext(java.lang.String type, MavenSession session)
ToolchainManagermaven-toolchains-plugin contains the configuration to select the appropriate
toolchain and is executed at the beginning of the build.getToolchainFromBuildContext in interface ToolchainManagertype - the type, must not be nullsession - the Maven session, must not be nullmaven-toolchains-pluginpublic java.util.List<Toolchain> getToolchains(MavenSession session, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> requirements)
ToolchainManagermaven-toolchains-plugin.getToolchains in interface ToolchainManagersession - the Maven session, must not be nulltype - the type, must not be nullrequirements - the requirements, may be nullnullpublic static final java.lang.String getStorageKey(java.lang.String type)