/
UnmappableCharacterException error in pom.xml plugin
UnmappableCharacterException error in pom.xml plugin
Problem:
I was getting the following error in pom.xml for maven-war-plugin even after updating Maven - java.nio.charset.UnmappableCharacterException
And as a result, some pages were crashed and tomcat showed some thymeleaf related error in the logs.
This might occur more commonly to those working with Windows systems.
Solution:
Add the following property to properties of pom.xml -
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Also, add following configuration to “maven-compiler-plugin”. Make sure to mention correct Java version in target and source configuration.
<configuration>
<encoding>UTF-8</encoding>
<source>11</source>
<target>11</target>
</configuration>
Run Maven update again and restart the server. It should be resolved after these changes.
, multiple selections available,
Related content
How to override Maven properties
How to override Maven properties
More like this
Database setup
Database setup
More like this
MySQL
More like this
Converting MySQL to UTF8mb4 encoding to handle special characters (Example: Č, ā)
Converting MySQL to UTF8mb4 encoding to handle special characters (Example: Č, ā)
More like this
Docker Setup in Windows
Docker Setup in Windows
More like this
Part 1: Setup
Part 1: Setup
More like this