code: static File getOutputDirectory(MavenProject rootModule) {
          String directoryName = rootModule.getBuild().getDirectory() + "/" + OUTPUT_DIRECTORY;
          File directory = new File(directoryName);
          directory.mkdirs();
          return directory;
      }
docs: Determines the directory for writing output files.
  
  @param rootModule The root module of the project.
  @return The report directory.