Class DefaultToolchainsBuilder

java.lang.Object
org.apache.maven.toolchain.DefaultToolchainsBuilder
All Implemented Interfaces:
ToolchainsBuilder

@Deprecated @Named("default") @Singleton public class DefaultToolchainsBuilder extends Object implements ToolchainsBuilder
Deprecated.
instead use DefaultToolchainsBuilder
  • Constructor Details

    • DefaultToolchainsBuilder

      public DefaultToolchainsBuilder()
      Deprecated.
  • Method Details

    • build

      public org.apache.maven.toolchain.model.PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException
      Deprecated.
      Description copied from interface: ToolchainsBuilder
      Builds the toolchains model from the configured toolchain files.
      Specified by:
      build in interface ToolchainsBuilder
      Parameters:
      userToolchainsFile - The path to the toolchains file, may be null to disable parsing.
      Returns:
      The toolchains model or null if no toolchain file was configured or the configured file does not exist.
      Throws:
      MisconfiguredToolchainException - If the toolchain file exists but cannot be parsed.