code: public final void execute() throws MojoExecutionException {
          final File outputFile = new File(outputDirectory, filename);
          if (outputDirectory.exists() || outputDirectory.mkdirs()) {
              try {
                  final OutputStream outputStream = new FileOutputStream(outputFile);
                  try {
                      final LDAPConnection connection = connect();
                      try {
                          final FormatHandler handler = getFormatHandler();
                          if (handler != null) {
                              handler.dump(connection, searchBase, searchFilter, outputStream, this);
                          }
                      } finally {
                          connection.close();
                      }
                  } finally {
                      try {
                          outputStream.close();
                      } catch (final IOException e) {
                      }
                  }
              } catch (final FileNotFoundException e) {
              }
          }
      }
docs: Execute the plugin goal by dumping the matching directory entries to a file in the specified format.
  
  @throws MojoExecutionException If something unexpected happens.