public class SiteInvoker extends Object
Constructor and Description |
---|
SiteInvoker(ArtifactRepository localRepository,
Log log) |
Modifier and Type | Method and Description |
---|---|
void |
invokeSite(org.apache.maven.project.MavenProject project,
File tmpReportingOutputDirectory)
Invoke Maven for the
site phase for a temporary Maven project using
tmpReportingOutputDirectory as ${project.reporting.outputDirectory} . |
public SiteInvoker(ArtifactRepository localRepository, Log log)
public void invokeSite(org.apache.maven.project.MavenProject project, File tmpReportingOutputDirectory) throws IOException
site
phase for a temporary Maven project using
tmpReportingOutputDirectory
as ${project.reporting.outputDirectory}
.
This is a workaround to be sure that all site files have been correctly generated.
maven.home
Java system property
or defined in M2_HOME
system env variables.
Note 2: we can't use siteOutputDirectory
param from site plugin because some plugins
${project.reporting.outputDirectory}
in their conf.project
- the MavenProject to invoke the site on. Not null.tmpReportingOutputDirectory
- not nullIOException
- if anyCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.