Skip to content

Commit

Permalink
Use consistent setter approach
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Dec 14, 2023
1 parent 5488257 commit 8119196
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo;
import org.apache.maven.reporting.MavenReport;
import org.apache.maven.reporting.exec.MavenReportExecution;
import org.codehaus.plexus.util.IOUtil;
import org.eclipse.jetty.server.Server;
Expand Down Expand Up @@ -122,7 +123,8 @@ private WebAppContext createWebApplication() throws MojoExecutionException {
// For external reports
project.getReporting().setOutputDirectory(tempWebappDirectory.getAbsolutePath());
for (MavenReportExecution mavenReportExecution : getReports()) {
mavenReportExecution.getMavenReport().setReportOutputDirectory(tempWebappDirectory);
MavenReport report = mavenReportExecution.getMavenReport();
report.setReportOutputDirectory(tempWebappDirectory);
}

List<MavenReportExecution> reports =
Expand Down

0 comments on commit 8119196

Please sign in to comment.