Configuring the Maven plugin

  <plugins>
    <plugin>
        <groupId>org.codehaus.xsite</groupId>
        <artifactId>xsite-maven-plugin</artifactId>
        <configuration>
            <sourceDirectoryPath>${basedir}/src/sitel</sourceDirectoryPath>
            <sitemapPath>content/sitemap.xml</sitemapPath>
            <skinPath>templates/skin.html</skinPath>
            <resourcePaths>resources</resourcePaths>
            <localisations>it,fr,pt</localisations>
            <outputDirectoryPath>${basedir}/target/xsite</outputDirectoryPath>
        </configuration>
        <executions>
            <execution>
                <phase>install</phase>
                <goals>
                    <goal>run</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>

Configuring the Ant task

<taskdef name="xsite" classname="org.codehaus.xsite.ant.XSiteTask"/>
<xsite sourceDirectoryPath="${basedir}/src/xsite" sitemapPath="content/sitemap.xml" 
		skinPath="templates/skin.html" resourcePaths="resources" localisations="it,fr,pt"
		outputDirectoryPath="${basedir}/target/xsite"/>