Class DefaultRootLocator

java.lang.Object
org.apache.maven.impl.model.rootlocator.DefaultRootLocator
All Implemented Interfaces:
org.apache.maven.api.Service, RootLocator

@Named public class DefaultRootLocator extends Object implements RootLocator
  • Constructor Details

    • DefaultRootLocator

      public DefaultRootLocator()
  • Method Details

    • findRoot

      public Path findRoot(@Nonnull Path basedir)
      Specified by:
      findRoot in interface RootLocator
    • findMandatoryRoot

      @Nonnull public Path findMandatoryRoot(@Nonnull Path basedir)
      Specified by:
      findMandatoryRoot in interface RootLocator
    • isRootDirectory

      protected boolean isRootDirectory(Path dir)
    • getRootDirectoryFallback

      protected Optional<Path> getRootDirectoryFallback()
    • getCanonicalPath

      protected Path getCanonicalPath(Path path)