Interface RootLocator

  • All Known Implementing Classes:
    DefaultRootLocator

    public interface RootLocator
    Interface used to locate the root directory for a given project. The root locator is usually looked up from the plexus container. One notable exception is the computation of the early session.rootDirectory property which happens very early. The implementation used in this case will be discovered using the JDK service mechanism. The default implementation will look for a .mvn child directory.
    Since:
    3.10.0
    See Also:
    DefaultRootLocator
    • Field Detail

      • UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE

        static final java.lang.String UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE
        See Also:
        Constant Field Values
    • Method Detail

      • findRoot

        java.nio.file.Path findRoot​(java.nio.file.Path basedir)
      • findMandatoryRoot

        java.nio.file.Path findMandatoryRoot​(java.nio.file.Path basedir)
      • getNoRootMessage

        default java.lang.String getNoRootMessage()