How to eliminate first 8 space rows from generated html of Maven 2 ?
Because the gernated html could not display text of GB2312,UTF-8
oncorrectly in IE,Firefox and so on.
I don't kow how to deal with this question!

My Site Descripor and My pom.xml is:

site.xml
+-----------------------------------------------------------------------------------------------+
<?xml version="1.0" encoding="UTF-8"?>
<project name="Maven">
 <bannerLeft>
  <name>Maven</name>
  <src>http://maven.apache.org/images/apache-maven-project-2.png</src>
  <href> http://maven.apache.org/</href>
 </bannerLeft>
 <bannerRight>
  <src>http://maven.apache.org/images/maven-logo-2.gif</src>
 </bannerRight>
 <publishDate format="dd MMM yyyy"/>
 <body>
  <links>
   <item name="Apache" href="http://www.apache.org/"/
<http://www.apache.org/%22/>>
   <item name="Maven 1.x"
href="http://maven.apache.org/maven-1.x"/<http://maven.apache.org/maven-1.x%22/>
>
   <item name="Maven 2.x" href="
http://maven.apache.org/"/<http://maven.apache.org/%22/>
>
   <item name="Continuum"
href="http://maven.apache.org/continuum"/<http://maven.apache.org/continuum%22/>
>
   <item name="SCM" href="
http://maven.apache.org/scm"/<http://maven.apache.org/scm%22/>
>
   <item name="Wagon"
href="http://maven.apache.org/wagon"/<http://maven.apache.org/wagon%22/>>
   <item name="JXR"
href="http://maven.apache.org/jxr"/<http://maven.apache.org/jxr%22/>
>
   <item name="Doxia" href="
http://maven.apache.org/doxia"/<http://maven.apache.org/doxia%22/>
>
  </links>
  <head>
   <script src="http://www.google-analytics.com/urchin.js";
type="text/javascript">
      </script>
   <script type="text/javascript">
        _uacct = "UA-140879-1";
        urchinTracker();
      </script>
  </head>
  <menu name="Quick Links">
   <item name="Features" href="/maven-features.html"/>
   <item name="Download" href="/download.html"/>
   <item name="Installation Instructions"
href="/download.html#installation"/>
   <item name="Getting Started" href="/guides/getting-started/index.html"/>
   <item name="Documentation" href="/guides/index.html"/>
   <item name="Available Plug-ins" href="/plugins/index.html"/>
   <item name="Plug-in Matrix" href="
http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix"/<http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix%22/>
>
   <item name="Where is it?" href="/where- is-it.html"/>
   <item name="How to Help" href="/guides/development/guide-helping.html"/>
   <item name="Eclipse Plug-in" href="/eclipse-plugin.html"/>
  </menu>
  <menu name="About Maven 2.0">
   <item name="What is Maven?" href="/what-is-maven.html"/>
   <item name="General Information" href="/about.html"/>
   <item name="For Maven 1.0 Users" href="/maven1.html"/>
   <item name="FAQ" href="/general.html"/>
   <item name="Powered By" href="/powered- by-m2.html"/>
   <item name="FAQ for Other Projects" href="/project-faq.html"/>
  </menu>
 </body>
</project>
+-----------------------------------------------------------------------------------------------+


pom.xml
+-----------------------------------------------------------------------------------------------+
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 maven-v4_0_0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.mycompany.app </groupId>
 <artifactId>my-app</artifactId>
 <version>1.0-SNAPSHOT</version>
 <name>Maven</name>
 <url>http://maven.apache.org/maven2 </url>
 <inceptionYear>2001</inceptionYear>
 <distributionManagement>
  <site>
   <id>website</id>
   <url> scp://webhost.company.com/www/website</url>
  </site>
 </distributionManagement>
 <build>
  <plugins>
   <plugin>
    <artifactId>maven-site-plugin</artifactId>
    <configuration>
     <locales>en</locales>
     <outputEncoding>UTF-8</outputEncoding>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>
+-----------------------------------------------------------------------------------------------+

Reply via email to