由maven运行的Groovy测试不显示非ASCII符号

时间:2012-05-14 12:54:17

标签: maven groovy gmaven-plugin

我正在使用gmaven插件来编译源代码。我有以下配置文件

<plugin>
            <groupId>org.codehaus.gmaven</groupId>
            <artifactId>gmaven-plugin</artifactId>
            <version>1.3</version>
            <configuration>
                <providerSelection>1.7</providerSelection>
                <sourceEncoding>UTF-8</sourceEncoding>
            </configuration>
            <executions>
                <execution>
                    <id>compile</id>
                    <goals>
                        <goal>generateStubs</goal>
                        <goal>compile</goal>
                        <goal>generateTestStubs</goal>
                        <goal>testCompile</goal>
                    </goals>
                </execution>
            </executions>
</plugin>

如果我运行mvn clean install,非ASCI符号将显示为? �。我该如何解决?

0 个答案:

没有答案