Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] weird encode problem in tycho-surefire

Hi,

I'm getting a test error due to encode settings when running my project's tycho build inside eclipse ide using m2e.

Out of eclipse, in my mac, I've set up JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8", so all build is being executed without problem.

But when executed inside ide:

org.junit.ComparisonFailure: expected:<Gavi[√£]o> but was:<Gavi[ã]o>
	at org.junit.Assert.assertEquals(Assert.java:125)


I've tried to set encode in all every possible location at pom. but nothing worked:

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>
...
                <plugin>
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-compiler-plugin</artifactId>
                    <version>${tycho-version}</version>
                    <configuration>
                        <compilerVersion>1.6</compilerVersion>
                        <encoding>UTF-8</encoding>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.5</version>
                    <configuration>
                        <encoding>UTF-8</encoding>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-surefire-plugin</artifactId>
                    <version>${tycho-version}</version>
                    <configuration>
                        <failIfNoTests>false</failIfNoTests>
                        <appArgLine>-Dfile.encoding=UTF-8</appArgLine>
                    </configuration>
                </plugin>

could someone give me any tip ?

Back to the top