org.apache.maven.plugins.site
Class SiteDescriptorAttachMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugins.site.AbstractSiteMojo
          extended by org.apache.maven.plugins.site.SiteDescriptorAttachMojo
All Implemented Interfaces:
ContextEnabled, Mojo

@Mojo(name="attach-descriptor",
      defaultPhase=PACKAGE,
      threadSafe=true)
public class SiteDescriptorAttachMojo
extends AbstractSiteMojo

Adds the site descriptor (site.xml) to the list of files to be installed/deployed.
For Maven-2.x this is enabled by default only when the project has pom packaging since it will be used by modules inheriting, but this can be enabled for other projects packaging if needed.
This default execution has been removed from the built-in lifecycle of Maven 3.x for pom-projects. Users that actually use those projects to provide a common site descriptor for sub modules will need to explicitly define this goal execution to restore the intended behavior.

Version:
$Id: SiteDescriptorAttachMojo.html 861484 2013-05-09 23:10:16Z hboutemy $
Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
i18n, locales, localRepository, project, reactorProjects, siteDirectory, siteTool
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SiteDescriptorAttachMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
getInputEncoding, getMavenVersion, getOutputEncoding, isMaven3OrMore
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteDescriptorAttachMojo

public SiteDescriptorAttachMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Throws:
MojoExecutionException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.