I figured this out myself. Here is the setting I use in the topmost
pom.xml of my project.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
    </plugins>
  </build> 

However, I have one question: Is there any other/better way to do it?

Using mvn projecthelp:effective-pom, I found out that the setting
automatically applies to child modules which is very nice. This seems to
be the case even when Maven is called in a directory of such a child
module, as long as it is correctly linked via <parent>. I assume this
stuff happens when Maven says "Scanning for projects...", someone on
this list called it "global source tree", IIRC.

To improve understanding of how Maven works, I suggest this fact be
mentioned in the multi-project guideline.


Christoph


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

Reply via email to