Package org.apache.maven.model.path
Class DefaultModelPathTranslator
- java.lang.Object
-
- org.apache.maven.model.path.DefaultModelPathTranslator
-
- All Implemented Interfaces:
ModelPathTranslator
@Named @Singleton public class DefaultModelPathTranslator extends java.lang.Object implements ModelPathTranslator
Resolves relative paths within a model against a specific base directory.- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description DefaultModelPathTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalignToBaseDirectory(org.apache.maven.model.Model model, java.io.File basedir, ModelBuildingRequest request)Resolves the well-known paths of the specified model against the given base directory.DefaultModelPathTranslatorsetPathTranslator(PathTranslator pathTranslator)
-
-
-
Method Detail
-
setPathTranslator
public DefaultModelPathTranslator setPathTranslator(PathTranslator pathTranslator)
-
alignToBaseDirectory
public void alignToBaseDirectory(org.apache.maven.model.Model model, java.io.File basedir, ModelBuildingRequest request)Description copied from interface:ModelPathTranslatorResolves the well-known paths of the specified model against the given base directory. Paths within plugin configuration are not processed.- Specified by:
alignToBaseDirectoryin interfaceModelPathTranslator- Parameters:
model- The model whose paths should be resolved, may benull.basedir- The base directory to resolve relative paths against, may benull.request- The model building request that holds further settings, must not benull.
-
-