code: public void makeDirectoryIfNecessary( File dir )
              throws MojoExecutionException
      {
  
          if ( !dir.exists() && !dir.mkdirs() )
          {
              throw new MojoExecutionException( "Failed to create directory: " + dir );
          }
  
      }
docs: {@inheritDoc}