cancel
Showing results for 
Search instead for 
Did you mean: 

Maven, special character encoding

Boo
New Contributor

Maven, special character encoding

Some time ago, I posted this question about sending request having special character (like "éèàù") inside of them. The problem is now fixed, however, when I try to launch my test using maven, I have the same problem again.

 

Here is my pom:

<?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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	
	<groupId>com.myproject.soapuitest</groupId>
	<artifactId>running-soapui-test</artifactId>
	<version>1.0-SNAPSHOT</version>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	
	<pluginRepositories>
		<pluginRepository>
			<id>smartbear-sweden-plugin-repository</id>
			<url>http://www.soapui.org/repository/maven2/</url>
		</pluginRepository>
	</pluginRepositories>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>3.1.0</version>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			
			<plugin>
				<groupId>com.smartbear.soapui</groupId>
				<artifactId>soapui-maven-plugin</artifactId>
				<version>5.5.0</version>
				<dependencies>
					<dependency>
						<groupId>com.jgoodies</groupId>
						<artifactId>jgoodies-forms</artifactId>
						<version>1.9.0</version>
					</dependency>
				</dependencies>
				<configuration>
					<projectFile>myproject-soapui-project.xml</projectFile>
					<outputFolder>${project.basedir}\output</outputFolder>
					<junitReport>true</junitReport>
				</configuration>
				
				<executions>
					<execution>
						<id>soapUI1</id>
						<phase>test</phase>
						<goals>
							<goal>test</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	
</project>

As you can see, I tried to set the encoding to UTF-8, but with no success (so far). 

 

So, any suggestions as how to fix this issue?

New Here?
Join us and watch the welcome video:
Announcements