Hi Maven experts,

I'm trying to create a localized version of the site according to the mini 
guide http://maven.apache.org/guides/mini/guide-site.html. "mvn site" works as 
expected with one issue I don't know how to solve:

The generated site's menu on the left containing the reports looks as


Projekt Dokumentation

* Projekt Information
  o Abhängigkeiten          <-- "ä" instead of German umlaut "ä"
  o Continuous Integration
  o Mailinglisten
  o Problembehandlung
  o Project Summary
  o Projekt Lizenz
  o Projekt Team
  o Quellcode Archiv
  o Willkommen bei

However, my own text that contains umlauts is shown correctly. It seems that 
all the localized texts created automatically by Maven are displayed 
incorrectly on the site although each of the HTML pages contains the following 
entry in the HTML header section:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />



I searched in the mailing list and the FAQ on 
http://docs.codehaus.org/display/MAVENUSER/Home, but didn't really found a 
solution. My pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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 
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.ukv</groupId>
  <artifactId>maven</artifactId>
  <version>1.1-SNAPSHOT</version>
  <name>Voreinstellungen für Maven-basierte Projekte</name>
  <description>Allgemeine Voreinstellungen für Maven-basierte 
Projekte</description>

  (...)

  <build>
    <pluginManagement>
      <plugins>
        (...)
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0-beta-5</version>
          <configuration>
            <locales>de</locales>
            <outputEncoding>UTF-8</outputEncoding>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <!-- Standardprofil -->
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>

      <build>
        <plugins>
          (...)
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <version>2.0-beta-5</version>
            <configuration>
              <locales>de</locales>
              <outputEncoding>UTF-8</outputEncoding>
            </configuration>
          </plugin>
        </plugins>
      </build>

      <reporting>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>
              maven-project-info-reports-plugin
            </artifactId>
            <version>2.0.1</version>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jxr-plugin</artifactId>
            <version>2.0</version>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>
              maven-surefire-report-plugin
            </artifactId>
            <version>2.3</version>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>taglist-maven-plugin</artifactId>
            <version>2.0</version>
            <configuration>
              <tags>
                <tag>TODO</tag>
                <tag>@todo</tag>
                <tag>FIXME</tag>
                <tag>@deprecated,</tag>
                <tag>HACK</tag>
                <tag>XXX</tag>
              </tags>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <version>2.1</version>
          </plugin>
        </plugins>
      </reporting>
    </profile>
  </profiles>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>


...and my site_de.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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/maven-navigation-1.0.xsd";
  name="Voreinstellungen für Maven">
  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-default-skin</artifactId>
    <version>1.0</version>
  </skin>

  <bannerLeft>
    <name>Maven</name>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
    <href>http://maven.apache.org/</href>
    <alt>Maven Logo</alt>
  </bannerLeft>
  <bannerRight>
    <src>http://maven.apache.org/images/maven-small.gif</src>
    <name>Maven Banner (klein)</name>
  </bannerRight>

  <publishDate format="dd.MM.yyyy" position="right" />

  <body>
    <links>
      <item name="Apache" href="http://www.apache.org/"; />
      <item name="Jakarta" href="http://jakarta.apache.org/"; />
      <item name="Maven 2" href="http://maven.apache.org/maven2/"; />
    </links>

    <menu ref="reports" />
  </body>
</project>


What am I doing wrong? I also added "-Dfile.encoding=UTF-8" to MAVEN_OPTS, but 
that didn't help, neither did saving the pom.xml and site_de.xml using 
ISO-8859-1[5] or omitting the configuration entry <outputEnconding> in the 
pom.xml...


Thanks for any help

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to