class_docstr: MavenBuild represents a build directory initialized by maven.
  
  The build instance can be used to build/test/install. It alleviates the
  user to know which generator is used.
docstr: Instantiate a Maven from a path.
  
  This is used to recover from an existing physical directory (created
  with or without Maven).
  
  Note that this method is not idempotent as the original definition will
  be lost.
docstr_tok: ["Instantiate","a","Maven","from","a","path",".","This","is","used","to","recover","from","an","existing","physical","directory","(","created","with","or","without","Maven",")",".","Note","that","this","method","is","not","idempotent","as","the","original","definition","will","be","lost","."]
code: def from_path(path):
      """Instantiate a Maven from a path.
  
      This is used to recover from an existing physical directory (created
      with or without Maven).
  
      Note that this method is not idempotent as the original definition will
      be lost.
      """
      if not MavenBuild.is_build_dir(path):
          raise ValueError(
              "Not a valid MavenBuild path: {}".format(path)
          )
  
      return MavenBuild(path, definition=None)
  
imports: import os
  from .command import Command, default_bin
label_desc: Use image node_id 8 for calling the MavenBuild obj's underlying member method code with example usage: obj.from_path(path) and returns: MavenBuild