Interface TransformerContext


@Deprecated(since="4.0.0") public interface TransformerContext
Deprecated.
use ModelBuilder instead
Context used to transform a pom file.
Since:
4.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Object
    Deprecated.
    Key to get the TransformerContext from the SessionData
  • Method Summary

    Modifier and Type
    Method
    Description
    getRawModel(Path from, String groupId, String artifactId)
    Deprecated.
    Get the model from the reactor based on the groupId and artifactId when resolving reactor dependencies.
    getRawModel(Path from, Path pomFile)
    Deprecated.
    Get the model based on the path when resolving the parent based on relativePath.
    Deprecated.
    Get the value of the Maven user property.
    locate(Path path)
    Deprecated.
    Locate the POM file inside the given directory.
  • Field Details

    • KEY

      static final Object KEY
      Deprecated.
      Key to get the TransformerContext from the SessionData
  • Method Details

    • getUserProperty

      String getUserProperty(String key)
      Deprecated.
      Get the value of the Maven user property.
    • getRawModel

      Model getRawModel(Path from, Path pomFile)
      Deprecated.
      Get the model based on the path when resolving the parent based on relativePath.
      Parameters:
      from - the requiring model
      pomFile - the path to the pomFile
      Returns:
      the model, otherwise null
    • getRawModel

      Model getRawModel(Path from, String groupId, String artifactId)
      Deprecated.
      Get the model from the reactor based on the groupId and artifactId when resolving reactor dependencies.
      Parameters:
      from - the requiring model
      groupId - the groupId
      artifactId - the artifactId
      Returns:
      the model, otherwise null
      Throws:
      IllegalStateException - if multiple versions of the same GA are part of the reactor
    • locate

      Path locate(Path path)
      Deprecated.
      Locate the POM file inside the given directory.