Skip to content

Commit

Permalink
OF-2889: i18n properties: don't convert from UTF-8 to Latin1
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Oct 17, 2024
1 parent 2634d4a commit ec21f82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
31 changes: 0 additions & 31 deletions i18n/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,4 @@
<artifactId>i18n</artifactId>
<name>Internationalization files for Openfire</name>
<description>These files are shared among the starter and xmppserver modules</description>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>

<plugins>
<plugin>
<!--
Java has trouble reading translations from UTF-8 files. To work around that,
this plugin ensures that Java-compatible encoding is used.
See https://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>2.0.1</version>
<executions>
<execution>
<id>utf8-to-latin1</id>
<goals>
<goal>inplace</goal>
</goals>
<configuration>
<dir>${project.build.outputDirectory}</dir>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
25 changes: 1 addition & 24 deletions plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@
</plugin>
<plugin>
<!--
Java has trouble reading translations from UTF-8 files. To work around that,
this plugin copies the i18n files from source to the build directory, to be
modified later by the native2ascii-maven-plugin.
This plugin copies the i18n files from source to the build directory.
-->
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
Expand All @@ -208,27 +206,6 @@
</execution>
</executions>
</plugin>
<plugin>
<!--
Java has trouble reading translations from UTF-8 files. To work around that,
this plugin ensures that Java-compatible encoding is used.
See https://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>2.0.1</version>
<executions>
<execution>
<id>utf8-to-latin1</id>
<goals>
<goal>inplace</goal>
</goals>
<configuration>
<dir>${project.build.directory}/i18n/</dir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit ec21f82

Please sign in to comment.