@Named @Singleton public class DefaultToolchainManager extends Object implements ToolchainManager
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
ROLE
Constructor and Description |
---|
DefaultToolchainManager(Map<String,ToolchainFactory> factories) |
Modifier and Type | Method and Description |
---|---|
static String |
getStorageKey(String type) |
Toolchain |
getToolchainFromBuildContext(String type,
MavenSession session)
Retrieve toolchain of specified type from build context.
|
List<Toolchain> |
getToolchains(MavenSession session,
String type,
Map<String,String> requirements)
Select all toolchains available in user settings matching the type and requirements,
independently from
maven-toolchains-plugin . |
@Inject public DefaultToolchainManager(Map<String,ToolchainFactory> factories)
public Toolchain getToolchainFromBuildContext(String type, MavenSession session)
ToolchainManager
maven-toolchains-plugin
contains the configuration to select the appropriate
toolchain and is executed at the beginning of the build.getToolchainFromBuildContext
in interface ToolchainManager
type
- the type, must not be null
session
- the Maven session, must not be null
maven-toolchains-plugin
public List<Toolchain> getToolchains(MavenSession session, String type, Map<String,String> requirements)
ToolchainManager
maven-toolchains-plugin
.getToolchains
in interface ToolchainManager
session
- the Maven session, must not be null
type
- the type, must not be null
requirements
- the requirements, may be null
null
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.