V
V
vadik_kmv2018-04-29 22:48:49
Java
vadik_kmv, 2018-04-29 22:48:49

How to solve Cyrillic problem in Maven?

Colleagues, hello!
When running the test in IntelliJ, everything goes fine, but when I try to run mvn clean test to get a report in Allure, the test fails on XPath paths containing Cyrillic.

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> не помог.

Has anyone experienced this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vadik_kmv, 2018-04-29
@vadik_kmv

That helped

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

U
unza, 2022-02-01
@unza

add to the pom file:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>3.0.0-M5</version>
  <configuration>
    <argLine>-Dfile.encoding=UTF-8</argLine>
  </configuration>
</plugin>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question