Interface ToolchainManagerPrivate

All Known Implementing Classes:
ToolchainManagerFactory.DefaultToolchainManagerV3

@Deprecated(since="4.0.0") public interface ToolchainManagerPrivate
Deprecated.
Use ToolchainManager instead.
Component for use by the maven-toolchains-plugin only. It provides API:
  1. to retrieve every toolchains available in user settings,
  2. to store chosen toolchain into build context for later use by toolchain-aware plugins.
Since:
2.0.9
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getToolchainsForType(String type, org.apache.maven.execution.MavenSession context)
    Deprecated.
    Retrieves every toolchains of given type available in user settings.
    void
    storeToolchainToBuildContext(ToolchainPrivate toolchain, org.apache.maven.execution.MavenSession context)
    Deprecated.
    Stores the toolchain into build context for later use by toolchain-aware plugins.
  • Method Details

    • getToolchainsForType

      ToolchainPrivate[] getToolchainsForType(String type, org.apache.maven.execution.MavenSession context) throws MisconfiguredToolchainException
      Deprecated.
      Retrieves every toolchains of given type available in user settings.
      Parameters:
      type - the type, must not be null
      context - the Maven session, must not be null
      Throws:
      MisconfiguredToolchainException
      Since:
      3.0 (addition of the MavenSession parameter)
    • storeToolchainToBuildContext

      void storeToolchainToBuildContext(ToolchainPrivate toolchain, org.apache.maven.execution.MavenSession context)
      Deprecated.
      Stores the toolchain into build context for later use by toolchain-aware plugins.
      Parameters:
      toolchain - the toolchain to store, must not be null
      context - the Maven session, must not be null
      Since:
      2.0.9
      See Also: