You are looking at documentation for an older release. Not what you want? See the current release documentation.
		XMLDeploymentPlugin is deprecated. Use 
		WCMPublicationDeploymentPlugin instead.
	
When a site is created, most of end-users want to see something in the page instead of a blank page, so you need this plugin to deploy some "default" contents, such as Banner, Footer, Navigation, Breadcrumb.
There are two main cases to use:
The site is created only one time when the database is cleaned.
The site is created at runtime, when a user uses the core features of the GateIn portal.
To use the plugin in the component configuration, you must use the following target-component:
<target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>
The configuration is applied mainly in samples/acme-website/webapp/src/main/webapp/WEB-INF/conf/acme-portal/wcm/deployment/acme-deployment-configuration.xml.
  
Sample configuration:
<external-component-plugins>
<target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>
<component-plugin>
<name>Content Initializer Service</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin</type>
<description>XML Deployment Plugin</description>
<init-params>
<value-param>
<name>override</name>
<description>The flag parameter to decide if portal metadata is overriden on restarting server</description>
<value>${acme.portalConfig.metadata.override:false}</value>
</value-param>
<object-param>
<name>ACME Logo data</name>
<description>Deployment Descriptor</description>
<object type="org.exoplatform.services.deployment.DeploymentDescriptor">
<field name="target">
<object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
<field name="repository">
<string>repository</string>
</field>
<field name="workspace">
<string>collaboration</string>
</field>
<field name="nodePath">
<string>/sites/acme/web contents/site artifacts</string>
</field>
</object>
</field>
<field name="sourcePath">
<string>war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo.xml</string>
</field>
<field name="versionHistoryPath">
<string>war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo_versionHistory.zip
</string>
</field>
<field name="cleanupPublication">
<boolean>true</boolean>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
In which:
        name: 
        Content Initializer Service
      
        set-method: 
        addPlugin
      
        type: 
        org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin
      
| Name | Type | Value | Description | 
|---|---|---|---|
| override | boolean | ${acme.portalConfig.metadata.override:false} | Decides if portal metadata is overriden on restarting server. 
 | 
        Object type: 
        org.exoplatform.services.deployment.DeploymentDescriptor
      
| Name | Type | Value | Description | 
|---|---|---|---|
| target | Object | org.exoplatform.services.deployment.DeploymentDescriptor$Target (*) | The target node which will contain the imported node. | 
| sourcePath | string | war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo.xml | The absolute path of the XML file. | 
| cleanupPublication | boolean | false | Decides when the publication lifecycle is cleaned up in the target folder after importing the data. 
 | 
| versionHistoryPath | string | war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo_versionHistory.zip | The absolute path of the version history file. | 
        Object type: 
        org.exoplatform.services.deployment.DeploymentDescriptor$Target
      
| Field | Type | Value | Description | 
|---|---|---|---|
| repository | string | repository | The repository name of the target node. | 
| workspace | string | collaboration | The collaboration name of the target node. | 
| nodePath | string | /sites/acme/web contents/site artifacts | The path of the target node. |