diff --git a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java
index 0ec197f953..50bc0aad28 100644
--- a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java
+++ b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java
@@ -28,7 +28,6 @@ import org.apache.maven.plugin.PluginManagerException;
import org.apache.maven.plugin.version.PluginVersionResolutionException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.reporting.MavenReport;
-import org.apache.maven.reporting.MavenReportConfiguration;
import org.apache.maven.reporting.MavenReportException;
import org.apache.maven.settings.Settings;
import org.codehaus.plexus.i18n.I18N;
@@ -225,14 +224,8 @@ public class DoxiaMojo
{
Locale locale = (Locale) i.next();
- MavenReportConfiguration config = new MavenReportConfiguration();
-
- config.setProject( project );
-
File localeOutputDirectory = getOuputDirectory( locale );
- config.setReportOutputDirectory( localeOutputDirectory );
-
//Generate reports
if ( reports != null )
{
@@ -242,7 +235,7 @@ public class DoxiaMojo
getLog().info( "Generate " + report.getName( locale ) + " report." );
- report.setConfiguration( config );
+ report.setReportOutputDirectory( localeOutputDirectory );
String outputFileName = report.getOutputName() + ".html";
diff --git a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
index bdb8836552..1e572784fc 100644
--- a/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
+++ b/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
@@ -43,7 +43,9 @@ public abstract class AbstractMavenReport
extends AbstractMojo
implements MavenReport
{
- /** @todo share, use default excludes from plexus utils. */
+ /**
+ * @todo share, use default excludes from plexus utils.
+ */
protected static final String[] DEFAULT_EXCLUDES = {// Miscellaneous typical temporary files
"**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*",
@@ -62,47 +64,30 @@ public abstract class AbstractMavenReport
// Mac
"**/.DS_Store"};
- private MavenReportConfiguration config;
-
private Sink sink;
private Locale locale = Locale.ENGLISH;
- public MavenReportConfiguration getConfiguration()
- {
- return config;
- }
-
- public void setConfiguration( MavenReportConfiguration config )
- {
- this.config = config;
- }
-
protected abstract SiteRenderer getSiteRenderer();
protected abstract String getOutputDirectory();
protected abstract MavenProject getProject();
+ private File reportOutputDirectory;
+
/**
* @see org.apache.maven.plugin.Mojo#execute()
*/
public void execute()
throws MojoExecutionException
{
- config = new MavenReportConfiguration();
-
- config.setProject( getProject() );
-
- config.setReportOutputDirectory( new File( getOutputDirectory() ) );
-
try
{
String outputDirectory = getOutputDirectory();
XhtmlSink sink = getSiteRenderer().createSink( new File( outputDirectory ), getOutputName() + ".html",
- outputDirectory,
- getSiteDescriptor(), "maven" );
+ outputDirectory, getSiteDescriptor(), "maven" );
generate( sink, Locale.ENGLISH );
@@ -120,14 +105,9 @@ public abstract class AbstractMavenReport
public void generate( Sink sink, Locale locale )
throws MavenReportException
{
- if ( config == null )
- {
- throw new MavenReportException( "You must specify a report configuration." );
- }
-
if ( sink == null )
{
- throw new MavenReportException( "You must specify a sink configuration." );
+ throw new MavenReportException( "You must specify a sink." );
}
else
{
@@ -158,7 +138,6 @@ public abstract class AbstractMavenReport
}
private String getReportsMenu()
- throws MojoExecutionException
{
StringBuffer buffer = new StringBuffer();
buffer.append( "