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: Initialize a MavenBuild.
  
  The caller must ensure that maven was invoked in the build directory.
  
  Parameters
  ----------
  definition : MavenDefinition
               The definition to build from.
  build_dir : str
              The build directory to setup into.
docstr_tok: ["Initialize","a","MavenBuild",".","The","caller","must","ensure","that","maven","was","invoked","in","the","build","directory",".","Parameters","--","--","--","--","--","definition",":","MavenDefinition","The","definition","to","build","from",".","build_dir",":","str","The","build","directory","to","setup","into","."]
code: def __init__(self, build_dir, definition=None):
      """Initialize a MavenBuild.
  
      The caller must ensure that maven was invoked in the build directory.
  
      Parameters
      ----------
      definition : MavenDefinition
                   The definition to build from.
      build_dir : str
                  The build directory to setup into.
      """
      assert MavenBuild.is_build_dir(build_dir)
      super().__init__()
      self.build_dir = os.path.abspath(build_dir)
      self.definition = definition
  
imports: import os
  from .command import Command, default_bin
label_desc: Use image node_id 1 to create a new MavenBuild object from inherited base classes: Maven with example: obj = MavenBuild(build_dir, definition)