code: public void removeDirectory( File dir )
              throws MojoExecutionException
      {
          if ( dir != null )
          {
              if ( dir.exists() && dir.isDirectory() )
              {
                  getLogger().debug( "Deleting directory " + dir.getAbsolutePath() );
                  try
                  {
                      FileUtils.deleteDirectory( dir );
                  }
                  catch ( IOException e )
                  {
                      throw new MojoExecutionException( "Could not delete directory: " + dir, e );
                  }
              }
          }
      }
docs: {@inheritDoc}