Class DefaultModelPathTranslator

java.lang.Object
org.apache.maven.model.path.DefaultModelPathTranslator
All Implemented Interfaces:
ModelPathTranslator

@Named @Singleton @Deprecated(since="4.0.0") public class DefaultModelPathTranslator extends Object implements ModelPathTranslator
Deprecated.
use ModelBuilder instead
Resolves relative paths within a model against a specific base directory.
  • Field Details

    • pathTranslator

      private final PathTranslator pathTranslator
      Deprecated.
  • Constructor Details

    • DefaultModelPathTranslator

      @Inject public DefaultModelPathTranslator(PathTranslator pathTranslator)
      Deprecated.
  • Method Details

    • alignToBaseDirectory

      @Deprecated public void alignToBaseDirectory(Model modelV3, File basedir, ModelBuildingRequest request)
      Deprecated.
      Description copied from interface: ModelPathTranslator
      Resolves the well-known paths of the specified model against the given base directory. Paths within plugin configuration are not processed.
      Specified by:
      alignToBaseDirectory in interface ModelPathTranslator
      Parameters:
      modelV3 - The model whose paths should be resolved, may be null.
      basedir - The base directory to resolve relative paths against, may be null.
      request - The model building request that holds further settings, must not be null.
    • alignToBaseDirectory

      public void alignToBaseDirectory(Model modelV3, Path basedir, ModelBuildingRequest request)
      Deprecated.
      Description copied from interface: ModelPathTranslator
      Resolves the well-known paths of the specified model against the given base directory. Paths within plugin configuration are not processed.
      Specified by:
      alignToBaseDirectory in interface ModelPathTranslator
      Parameters:
      modelV3 - The model whose paths should be resolved, may be null.
      basedir - The base directory to resolve relative paths against, may be null.
      request - The model building request that holds further settings, must not be null.
    • map

      private <T> List<T> map(List<T> resources, Function<T,T> mapper)
      Deprecated.
    • alignToBaseDirectory

      private Resource alignToBaseDirectory(Resource resource, Path basedir)
      Deprecated.
    • alignToBaseDirectory

      private String alignToBaseDirectory(String path, Path basedir)
      Deprecated.
    • mayAlignToBaseDirectoryOrNull

      private String mayAlignToBaseDirectoryOrNull(String path, Path basedir)
      Deprecated.
      Returns aligned path or null if no need for change.